02.07.2009, 08:18
Ah, I understand. In my case it would be:
By the way, I found this at Wiki:
https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Thanks all for help!
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;
}
https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Thanks all for help!