05.07.2011, 03:30
The same way you have it alread, return 0.
The final code should look something like this:
The final code should look something like this:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if ((Count1 > Count2) && GetPlayerTeam(playerid) == TEAM_TERRORIST)
{
GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
PlayerPlaySound(playerid,1055,0, 0, 0);
return 0;
}
else if((Count2 < Count1) && GetPlayerTeam(playerid) == TEAM_KOPASSUS)
{
GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
PlayerPlaySound(playerid,1055,0, 0, 0);
return 0;
}
SetPlayerToTeamColour(playerid);
return 1;
}