27.12.2010, 19:19
I need anybody to tell me if this script will work or have any bug..
Sorry to post this kind of post but I dont haqve anybody to test it with.
pawn Код:
new JAPCount, USACount;
public OnPlayerRequestSpawn(playerid)
{
if (LoggedIn[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"ERROR: You must log in before playing !");
if (PlayerTeam[playerid] == TEAM_JAPFLEET)
{
if (JAPCount > USACount) return SendClientMessage(playerid,COLOR_RED,"INFO: This team is full. Join another team");
JAPCount++;
}
if (PlayerTeam[playerid] == TEAM_AIRFORCE)
{
if (USACount > JAPCount) return SendClientMessage(playerid,COLOR_RED,"INFO: This team is full. Join another team");
USACount++;
}
}