07.10.2011, 23:30
new Team1;
new Team2;
new Team3;
new Team4;
OnPlayerSpawn use
if(gTeam[playerid] == (your team here) )
{
Team1++;
// ADD THIS FOR ALL THE TEAMS YOU HAVE, Team2, Team3, Team4
}
OnPlayerDeath use
if(gTeam[playerid] == (your team here) )
{
Team1--;
// ADD THIS FOR ALL THE TEAMS YOU HAVE, Team2, Team3, Team4
}
OnPlayerRequestSpawn use
public OnPlayerRequestSpawn(playerid)
{
if(Team1 > Team2 || Team1 > Team3 || Team1 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team2 > Team1 || Team2 > Team3 || Team2 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team3 > Team1 || Team3 > Team2 || Team3 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team4 > Team1 || Team4 > Team2 || Team4 > Team3) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
return 1;
}
new Team2;
new Team3;
new Team4;
OnPlayerSpawn use
if(gTeam[playerid] == (your team here) )
{
Team1++;
// ADD THIS FOR ALL THE TEAMS YOU HAVE, Team2, Team3, Team4
}
OnPlayerDeath use
if(gTeam[playerid] == (your team here) )
{
Team1--;
// ADD THIS FOR ALL THE TEAMS YOU HAVE, Team2, Team3, Team4
}
OnPlayerRequestSpawn use
public OnPlayerRequestSpawn(playerid)
{
if(Team1 > Team2 || Team1 > Team3 || Team1 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team2 > Team1 || Team2 > Team3 || Team2 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team3 > Team1 || Team3 > Team2 || Team3 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team4 > Team1 || Team4 > Team2 || Team4 > Team3) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
return 1;
}