Would this work?
#1

I need anybody to tell me if this script will work or have any bug..
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++;
    }
}
Sorry to post this kind of post but I dont haqve anybody to test it with.
Reply


Messages In This Thread
Would this work? - by admantis - 27.12.2010, 19:19
Re: Would this work? - by iggy1 - 27.12.2010, 19:23
Re: Would this work? - by admantis - 27.12.2010, 19:25
Re: Would this work? - by iggy1 - 27.12.2010, 19:30
Re: Would this work? - by MadeMan - 27.12.2010, 19:31
Re: Would this work? - by admantis - 27.12.2010, 19:32
Re: Would this work? - by iggy1 - 27.12.2010, 19:32
Re: Would this work? - by MadeMan - 27.12.2010, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)