Help with class selection
#5

^
Not to be mean, but that will cause the player to be unable to spawn. You must put something this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(pInfo[playerid][Skin] > 0)
    {
        if(skinchange[playerid] == 0)
        {
            SetPlayerSkin(playerid,pInfo[playerid][Skin]);
            SpawnPlayer(playerid);
        }
        return 1;
    }
    return 1;
}
With the code I posted above, when the player gets to class selection, if the skin is greater than 0 (so that it cannot select an invalid skin id), it will set their skin, if they try to use the arrow keys, it will spawn them.
Reply


Messages In This Thread
Help with class selection - by earlybird325 - 15.12.2014, 22:13
Re: Help with class selection - by Mic_H - 16.12.2014, 01:58
Re: Help with class selection - by earlybird325 - 16.12.2014, 02:45
Re: Help with class selection - by Quickie - 16.12.2014, 03:02
Re: Help with class selection - by Banana_Ghost - 16.12.2014, 09:03
Re: Help with class selection - by Quickie - 16.12.2014, 09:28
Re: Help with class selection - by Banana_Ghost - 16.12.2014, 09:30
Re: Help with class selection - by earlybird325 - 16.12.2014, 09:31

Forum Jump:


Users browsing this thread: 1 Guest(s)