[HELP] Stock select random players without repeating
Hello, can someone give me an example of how I can create a stock that selects random players without repeating them? For example, Player 1 cannot be Player 2, and if they are, the stock should find another player who is not Player 1. It would be useful to create an array and add the IDs of these players to that array. If any of them disconnect from the server, their ID should be removed from the array.
|
Re: [HELP] Stock select random players without repeating
Needs some testing.
PHP Code:
|
Re: [HELP] Stock select random players without repeating
I would probably use the functions provided by Bugsy here. Doing something like this:
PHP Code:
|
| All times are GMT -4. The time now is 10:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.