How to check if the player already chose a skin?
#1

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..
Reply
#2

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?
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)