Jump to content
  • 0

pomoc Porhazování v dialogu, nenastavování skinu


Valtys

Dotaz

Zdravím potřebuji pomoct s dvěmi věcmi.
 

1. Dialogy vyřešeny.

2. Když se hráč připojí atd tak mu to nastaví v pohodě skin ale když hráč zemře tak to skin nastaví na CJ 0 i přes podmínky 
--

Pozice to normálně nastaví ale ten skin ne.. al když se zabijwee podruhé tak to ten skin zase dá(ale jen někdy)

public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
posmrti[playerid]=1;
return 1;
}

public OnPlayerSpawn(playerid)
{
if(posmrti[playerid]==1)
{
SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("skin")-GetPlayerSkin(playerid));
SCM(playerid,COLOR_RED,"Takhle snad uzž");


if(zamestnani[playerid]==2)
{
SetPlayerPos(playerid,-1304.0131,2491.7739,87.1451);
}
if(zamestnani[playerid]==1)
{
SetPlayerPos(playerid,94.6054,1919.3590,18.0839);
}
if(zamestnani[playerid]==0)
{
SetPlayerPos(playerid,-553.8539,2593.7532,53.9348);
}
posmrti[playerid]=0;
}
return 1;
}
Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0
public OnPlayerSpawn(playerid)
{
if(posmrti[playerid]==1)
{
SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("skin"));
SCM(playerid,COLOR_RED,"Takhle snad uzž");


if(zamestnani[playerid]==2)
{
SetPlayerPos(playerid,-1304.0131,2491.7739,87.1451);
}
if(zamestnani[playerid]==1)
{
SetPlayerPos(playerid,94.6054,1919.3590,18.0839);
}
if(zamestnani[playerid]==0)
{
SetPlayerPos(playerid,-553.8539,2593.7532,53.9348);
}
posmrti[playerid]=0;
}
return 1;
}

to není jako s penězmi kde odečítáš to co právě má :d

Link to comment
Share on other sites

  • 0

Dobře :d 

Potřeboval bych ještě  toto : 
Když se hráči změní skin-
uloží se mu nové id skinu do složky - to si zvládnu udělat sám -_-:d

 

// hádám něco do OnPlayerUpdate...

 

Díky za pomoc

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...