SA-MP Forums Archive
How to check if the player already chose a skin? - 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: How to check if the player already chose a skin? (/showthread.php?tid=147508)



How to check if the player already chose a skin? - Fonsie - 12.05.2010

Like after the player logs in he doesnt go to onplayerrequestclass again. And directly spawns with his saved skin.

I have:
pawn Код:
if(PlayerInfo[playerid][Skin] != 0)
    {
        SpawnPlayer(playerid);
    }
    else
    {
        ForceClassSelection(playerid);
    }
Doesnt work..


Re: How to check if the player already chose a skin? - IcyBlight - 12.05.2010

Mine has a ChoseSkin under player info.

When he registers and chooses a skin for the first time, ChoseSkin is set to 1, and the skin he chose becomes is Playerinfo[playerid][Skin]-value.

OnRequestClass, my script shows a gametext "Please press Spawn, you cannot choose a new skin at this point" if your ChoseSkin is 1.

And OnPlayerSpawn, SetPlayerSkin(playerid, PlayerInfo[playerid][Skin])

Makes sense?


Re: How to check if the player already chose a skin? - Fonsie - 12.05.2010

i would like to have something else without the "Please press Spawn, you cannot choose a new skin at this point"

Like it auto spawns