SA-MP Forums Archive
Auto Team selection - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Auto Team selection (/showthread.php?tid=438310)



Auto Team selection - GwENiko - 19.05.2013

Hi, i was wondering how do i code my server to fairly distribute every online player between two teams, after i use a command to start an event for example.


Re: Auto Team selection - DaRealShazz - 19.05.2013

Do players randomly get put into 2 different teams or do you want it to so they can choose however, if one team is too populated, they get autobalanced?


Re: Auto Team selection - GwENiko - 19.05.2013

I need it so players get automatically put in two different teams, randonly.


Re: Auto Team selection - DaRealShazz - 19.05.2013

Use the
Код:
random(max);
function.


Re: Auto Team selection - GwENiko - 19.05.2013

Quote:
Originally Posted by DaRealShazz
Посмотреть сообщение
Use the
Код:
random(max);
function.
Hm.. can you explain it please? i am completely clueless;