select player random
#2

You can make use of iterators in y_iterate.
PHP код:
new Iterator:PlayersInEvent<MAX_PLAYERS>; 
When player enters event use Iter_Add
PHP код:
Iter_Add(PlayersInEvent,playerid); 
Now for selecting random ids use Iter_Random
PHP код:
new randomid Iter_Random(PlayersInEvent); 
When player leaves event use Iter_Remove
PHP код:
Iter_Remove(PlayersInEvent,playerid); 
When event ends clear iterator using Iter_Clear
PHP код:
Iter_Clear(PlayersInEvent); 
Reply


Messages In This Thread
select player random - by SapMan - 16.09.2018, 01:23
Re: select player random - by SyS - 16.09.2018, 02:21
Re: select player random - by TheToretto - 20.09.2018, 22:35
Re: select player random - by KinderClans - 20.09.2018, 22:42
Re: select player random - by TheToretto - 20.09.2018, 22:47
Re: select player random - by KinderClans - 20.09.2018, 22:51
Re: select player random - by SyS - 22.09.2018, 03:41
Re: select player random - by SapMan - 22.09.2018, 15:41
Re: select player random - by SapMan - 25.09.2018, 04:31
Re: select player random - by SapMan - 25.09.2018, 19:42
Re: select player random - by Calisthenics - 25.09.2018, 20:01
Re: select player random - by SapMan - 25.09.2018, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)