Vix, the simple Command Delayer
It's a simple plugin which is capable of delaying your commands to happen just when you want them to. There are other plugins like this which are much more advanced with files and dates and such but what I wanted to make was a simple plugin which you can use on the same map.
One of the greatest unique features about this is also that it works for clients, and not only admins, as it uses client_cmd().
This plugin has only been tested with one player thus far. Any multi-player testing would be much appreciated.
Remember to enable debug for any potential error logging.
Commands- amx_delay <seconds | -1 (round end) | -2 (round start) > <command>
Any ' will be replaced by a quote (") so that you can do any kind of command.
Examples
Code:
//Will make you say "This was a nice round" at the end of the round
amx_delay -1 "say 'This was a nice round'"
//Will make you tell your team "Lets go B this round" on round start
amx_delay -2 "say_team 'Lets go B this round!'"
//Will change the map to de_dust2 after 20 seconds (provided you have access to that command)
amx_delay 20 "amx_map 'de_dust2'"
Console Variables- vix_advertise_delay <advert interval | set to 0 to disable> default: 600.0
To-DoFeel free to suggest more features. I've got nothing.
Changelog- v1.0.1 - Fixed a potential bug that would occur when a client would leave and a connecting client got his index.
- v1.0 - Public release.
Credits