class availability
#2

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(Skin == SkinID)
    {
        for(new i = 0; i < 50; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[i][Skin] == 1)
                {
                    GameTextForPlayer(i, "You cannot spawn as that class", 5000, 5);
                    return 0;
                }
            }
        }
    }
    return 1;
}
Something like this should help. But, you'll need to edit it to fit your stuff.
Reply


Messages In This Thread
class availability - by NeverKnow - 23.08.2010, 23:59
Re: class availability - by ScottCFR - 24.08.2010, 00:33
Re: class availability - by NeverKnow - 24.08.2010, 08:53
Re: class availability - by gereter - 24.08.2010, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)