SA-MP Forums Archive
Another problem with player class. - 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: Another problem with player class. (/showthread.php?tid=433421)



Another problem with player class. - lQs - 27.04.2013

Hi, when i die my i respawn and my skin come back to default. I mean when i create smth like that:
Код:
	AddPlayerClass(24, 2492.878417, -1750.079589, 13.495314, 90.0, 0, 0, 0, 0, 0, 0);
My skin comes back to 24 when i dies. When i delete this code, when my hp comes to 0, i dies and respawn as CJ. How to fix that?
My gamemode:
Код:
http://pastebin.com/H2iK7sVk



Re: Another problem with player class. - verlaj - 27.04.2013

use SetPlayerSkin at OnPlayerSpawn


Re: Another problem with player class. - lQs - 27.04.2013

SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); - it will work?