01.09.2013, 17:52
This'd be a good guidance: https://sampwiki.blast.hk/wiki/Random.
pawn Код:
new randomteam = 1 + random(5); //minimum 1 max 5
SetPlayerTeam(playerid, randomteam);