[help] "Team is full."
#6

Ah, I understand. In my case it would be:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(gClass[playerid] == 0)
    {
        if(AlphaMembers > GammaMembers)
        {
            SendClientMessage(playerid,COLOR, "Team is full!");
            return 0;
        }
    }
    else if(gClass[playerid] == 1)
    {
        if(GammaMembers > AlphaMembers)
        {
            SendClientMessage(playerid,COLOR, "Team is full.");
            return 0;
        }
    }
    return 1;
}
By the way, I found this at Wiki:
https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn

Thanks all for help!
Reply


Messages In This Thread
[help] "Team is full." - by Marc_307 - 02.07.2009, 04:11
Re: [help] "Team is full." - by HuRRiCaNe - 02.07.2009, 04:27
Re: [help] "Team is full." - by Marc_307 - 02.07.2009, 05:17
Re: [help] "Team is full." - by Grim_ - 02.07.2009, 05:40
Re: [help] "Team is full." - by dice7 - 02.07.2009, 07:24
Re: [help] "Team is full." - by Marc_307 - 02.07.2009, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)