21.02.2012, 20:08
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
SetPlayerInterior(playerid, 0);
if(GetPlayerSkin(playerid) == 121)
{
SetPlayerTeam(playerid, 1);
SetPlayerColor(playerid,0xFF4600FF);
terrorcount++;
}
if(GetPlayerSkin(playerid) == 285)
{
SetPlayerTeam(playerid, 2);
SetPlayerColor(playerid,0x0091FFFF);
swatcount++;
}
if(GetPlayerTeam[playerid] == 1 && swatcount > terrorcount)
{
GameTextForPlayer(playerid,"~r~Team Full choose other",2000,3);
return 0;
}
if(GetPlayerTeam[playerid] == 2 && terrorcount > swatcount)
{
GameTextForPlayer(playerid,"~r~Team Full choose other",2000,3);
return 0;
}
return 1;
}