18.05.2016, 17:09
You can use modulo operation but it would give 0 instead of 5 so we set it again if that's the case:
pawn Код:
new spawn_number;
if (!(spawn_number = playerid % 5)) spawn_number = 5;