Special Teaming System
#6

Place this somewhere:
pawn Код:
stock randomEx(minnum = cellmin, maxnum = cellmax){
    return random(maxnum - minnum + 1) + minnum;}

Then:
pawn Код:
public OnPlayerConnect(playerid)
{
    new team = randomEx(1,4); //I believe this would generate a number between 1 and 3, but it might be 1 and 4. Try it out ;)

    //Insert your code here. For example: SetPlayerCustomTeam(playerid, team);
}
Hope this helps
Reply


Messages In This Thread
Relative Teaming System - by austin070 - 18.02.2013, 16:54
Re: Special Teaming System - by DrDoom151 - 18.02.2013, 18:30
Re: Special Teaming System - by austin070 - 18.02.2013, 18:35
Re: Special Teaming System - by DrDoom151 - 18.02.2013, 18:37
Re: Special Teaming System - by austin070 - 18.02.2013, 18:43
Re: Special Teaming System - by DrDoom151 - 18.02.2013, 18:51
Re: Special Teaming System - by austin070 - 18.02.2013, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)