class availability
#1

I'd like to do a unique class so available for 1 player maxi, if player die it becomes available again. It can have only one player in this class.

I hope that someone can help me
Thanks!
Reply
#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
#3

Quote:

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.

Thank you very much!
Reply
#4

Thank you,

Can you explain me the lines, because if I want to adapt it for my gamemode, I need to understand what does mean this lines.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)