OnPlayerRequestSpawn - Team Balancer
#2

I suggest you use a switch.
pawn Код:
switch(pi[playerid][Classid])
{
    case 1 .. 3:
    {
        if(Cmafia >= MafiaFull) return 0;
        pi[playerid][Mafia] = 1;
    }
    case 4 .. 6:
    {
        if(Cpolice <= CopFull) return 0;
        pi[playerid][Police] = 1;
    }
}
Reply


Messages In This Thread
OnPlayerRequestSpawn - Team Balancer - by Naxix - 23.11.2010, 13:57
Re: OnPlayerRequestSpawn - Team Balancer - by Vince - 23.11.2010, 14:31
Re: OnPlayerRequestSpawn - Team Balancer - by Naxix - 23.11.2010, 14:34
Re: OnPlayerRequestSpawn - Team Balancer - by Voldemort - 23.11.2010, 14:37
Re: OnPlayerRequestSpawn - Team Balancer - by Naxix - 23.11.2010, 14:40
Re: OnPlayerRequestSpawn - Team Balancer - by Voldemort - 23.11.2010, 14:43
Re: OnPlayerRequestSpawn - Team Balancer - by Naxix - 23.11.2010, 14:46
Re: OnPlayerRequestSpawn - Team Balancer - by The_Moddler - 23.11.2010, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)