SA-MP Forums Archive
Skin not saving on death - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Skin not saving on death (/showthread.php?tid=174455)



Skin not saving on death - Marshall_Banks - 05.09.2010

My skins are not saving on death but the save on login/logut i tried putting setplayerskin on onplayer spawn but nothing happened it still spawns as CJ skin. Im using carlitos roleplay
Код:
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);



Re: Skin not saving on death - ipsBruno - 05.09.2010

You Use
pawn Код:
PlayerInfo [playerid] [pSkin] = GetPlayerSkin(playerid)
?


Re: Skin not saving on death - Marshall_Banks - 05.09.2010

no i used
Код:
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
and i tried the oe u said it still didnt work


Re: Skin not saving on death - ipsBruno - 05.09.2010

In OnPlayerDisconnect and OnPlayerDeath

pawn Код:
PlayerInfo [playerid] [pSkin] = GetPlayerSkin(playerid);



Re: Skin not saving on death - Luka P. - 05.09.2010

Don't put it in OnPlayerDisconnect and OnPlayerDeath but in OnPlayerRequestSpawn


Re: Skin not saving on death - ipsBruno - 05.09.2010

Quote:
Originally Posted by Luka P.
Посмотреть сообщение
Don't put it in OnPlayerDisconnect and OnPlayerDeath but in OnPlayerRequestSpawn
Not Friend:
pawn Код:
PlayerInfo [playerid] [pSkin] = GetPlayerSkin(playerid);
Save the Skin in Array (In OnPlayerDisconnect or OnPlayerDeath)


pawn Код:
SetPlayerSkin(playerid,PlayerInfo [playerid] [pSkin]);
( Set Skin for Player OnPlayerSpawn or OnPlayerRequestSpawn)

NOTE:

Not correcting if you do not know
¬¬


Re: Skin not saving on death - Marshall_Banks - 05.09.2010

Thanks guys it worked