Let's player to spawn
#1

so under OnPlayerRequestClass i have this(this is really frustrating me out!!!)(it's a team balancer)
Код:
    if(EUROPE > USA && GetPlayerTeam(playerid) == EUROPE)
    {
        GameTextForPlayer(playerid, "~r~Team Full!~n~~w~Choose Another Team!", 3000, 5);
        return 0;
    }
    else if(USA > EUROPE && GetPlayerTeam(playerid) == USA)
    {
        GameTextForPlayer(playerid, "~r~Team Full!~n~~w~Choose Another Team!", 3000, 5);
        return 0;
    }
    if(RUSSIA > CHINA && GetPlayerTeam(playerid) == RUSSIA)
    {
        GameTextForPlayer(playerid, "~r~Team Full!~n~~w~Choose Another Team!", 3000, 5);
        return 0;
    }
    else if(CHINA > RUSSIA && GetPlayerTeam(playerid) == CHINA)
    {
        GameTextForPlayer(playerid, "~r~Team Full!~n~~w~Choose Another Team!", 3000, 5);
        return 0;
    }
	TextDrawShowForPlayer(playerid, title);
    return 1;
}
now i also have this as a stock

Код:
stock GetPlayersInTeamFromMaxPlayers(teamid)
{
    new playercount = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(GetPlayerState(i) == PLAYER_STATE_NONE) continue;
        if(GetPlayerTeam(i) != teamid) continue;
        playercount++;
    }
    return playercount;
}
HOW DO I MAKE THIS WORK !!!!
Reply


Messages In This Thread
Let's player to spawn - by SwisherSweet - 06.07.2013, 05:28
Re: Let's player to spawn - by Niko_boy - 06.07.2013, 05:41
Re: Let's player to spawn - by park4bmx - 06.07.2013, 05:41
Re: Let's player to spawn - by SwisherSweet - 06.07.2013, 05:45
Re: Let's player to spawn - by SwisherSweet - 06.07.2013, 06:06
Re: Let's player to spawn - by ReVo_ - 06.07.2013, 07:15
Re: Let's player to spawn - by SwisherSweet - 06.07.2013, 07:22
Re: Let's player to spawn - by ReVo_ - 06.07.2013, 07:33
Re: Let's player to spawn - by SwisherSweet - 06.07.2013, 07:44
Re: Let's player to spawn - by SwisherSweet - 06.07.2013, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)