Raised This Month: $51 Target: $400
 12% 

Vix (Command Delayer) v1.0.1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   Arkshine (91)
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 08-04-2010 , 21:06   Vix (Command Delayer) v1.0.1
Reply With Quote #1

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-Do
Feel 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
Attached Files
File Type: sma Get Plugin or Get Source (vix.sma - 2148 views - 3.1 KB)
__________________

Last edited by DarkGod; 11-12-2013 at 15:15.
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode