18.02.2013, 18:51
Place this somewhere:
Then:
Hope this helps
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);
}
