SA-MP Forums Archive
Saving and Loading Skins - 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: Saving and Loading Skins (/showthread.php?tid=483258)



Saving and Loading Skins - ZBits - 24.12.2013

OnPlayerSpawn:

pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid,pInfo[playerid][pSkin]);
return 1;
}
Hi there, i have a code that when someone leaves the game it saves his skin, that works pretty well and loads good. But i am confused with how to spawn a player who is newly registered to the server with the class selection skins?

My Registered and Login variables

pawn Код:
IsRegistered
IsLogged
Thanks


Re: Saving and Loading Skins - RowdyrideR - 24.12.2013

Do you force spawn? (Automatically spawn players)


Re: Saving and Loading Skins - ZBits - 24.12.2013

No i dont, the players who have there skins saved spawn naturally from class selection but once the spawn there skin ids are set to the id that was saved before the logged out/quit.


Re: Saving and Loading Skins - ZBits - 25.12.2013

fixed.