Random Command every 10 sec
Hi!
I'm looking for a plugin that randomly time(10-20sec) executes a command I've made on players. amx_slay <name or #userid> or amx_kick <name or #userid> etc.. Thank you very mutch for help! |
Re: Random Command every 10 sec
Create an array of the commands you would like to be executed randomly.
Set a timed task that will be executed every 10-20 seconds. Get a random number between 0 and the size of your commands array. Use that number as the index of the commands array. => You have a random command. |
Re: Random Command every 10 sec
Give me the code pls, i don't understand you :( :cry:
Quote:
|
Re: Random Command every 10 sec
Quote:
|
Re: Random Command every 10 sec
What this pause and unpause? Random player kick 20sec. This code is good, or not?
PHP Code:
Quote:
|
Re: Random Command every 10 sec
Try this one instead.
6 seconds after round has ended it will run a command. Change the command and time to what you want. PHP Code:
|
Re: Random Command every 10 sec
Should the command execute on all players?
|
Re: Random Command every 10 sec
Hello!
Can someone help me? Just add a condition that this wont work on admins. Admins must be safe from this random commands. thanks! |
| All times are GMT -4. The time now is 04:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.