SA-MP Forums Archive
Please Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please Help (/showthread.php?tid=537628)



Please Help - cPawn - 16.09.2014

Hello, I have a problem with spawn players, means when I die, on spawn I get cj skin and spawn button

If you know the reason of problem please help me. Thanks in advance


Re: Please Help - Abagail - 16.09.2014

It's not an issue or a problem it's just simply the lack of scripting causing such "issue". You need to script that, - it's not a default procedure. Example,

pawn Код:
stock SetPlayerSkinEx(playerid, skinid)
{
     playerskin = skinid;
     return SetPlayerSkin(playerid, skinid);
}

public OnPlayerSpawn(playerid)
{
   SetPlayerSkin(playerid, playerskin[playerid]);
}
Basically you need to save the skin, and set it once a player (re)spawns.


Re: Please Help - cPawn - 16.09.2014

Its not working.