Raised This Month: $100 Target: $400
 25% 

Vix (Command Delayer) v1.0.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   Arkshine (91)
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 08-04-2010 , 22: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 - 1624 views - 3.1 KB)
__________________

Last edited by DarkGod; 11-12-2013 at 16:15.
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 08-04-2010 , 22:08   Re: Vix (Command Delayer) v1.0
Reply With Quote #2

PHP Code:
static command[MaxCmdLen]
new 
index 
Don't create variables in loops
__________________
"There is no knowledge, that is not power"
fezh is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 08-04-2010 , 22:10   Re: Vix (Command Delayer) v1.0
Reply With Quote #3

Quote:
Originally Posted by fezh View Post
PHP Code:
static command[MaxCmdLen]
new 
index 
Don't create variables in loops
My bad. I know about this but somehow forgot about it while doing this (I blame joaquim).

Thanks.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 08-05-2010 , 03:38   Re: Vix (Command Delayer) v1.0
Reply With Quote #4

Nice, going to look at the source tomorrow. gj.
__________________
Hi.
Kreation is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 08-05-2010 , 21:07   Re: Vix (Command Delayer) v1.0.1
Reply With Quote #5

Updated to 1.0.1.

Fixed a potential bug that would occur when a client would leave and a connecting client got his index. (Thanks fysiks)
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-05-2010 , 21:22   Re: Vix (Command Delayer) v1.0.1
Reply With Quote #6

Add a link to supercentral

Overall, this plugin is great
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
Afro-Ankan
Member
Join Date: Jul 2009
Location: Sweden
Old 08-06-2010 , 21:25   Re: Vix (Command Delayer) v1.0.1
Reply With Quote #7

Looks awesome. Good job
__________________
My Current Projects:
Pistols vs Pistols Public
Progress [ | | | | | | | | | | ]
Only 10% Completed
Afro-Ankan is offline
Send a message via MSN to Afro-Ankan
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 08-06-2010 , 22:33   Re: Vix (Command Delayer) v1.0.1
Reply With Quote #8

Nice idea.
__________________
a.aqua is offline
Send a message via ICQ to a.aqua
fang
Senior Member
Join Date: Nov 2007
Location: New Jersey
Old 08-18-2010 , 15:59   Re: Vix (Command Delayer) v1.0.1
Reply With Quote #9

I will combine this with amx_slap > Watch out dark god if you ever come into my server. ^^
fang is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 08-18-2010 , 16:04   Re: Vix (Command Delayer) v1.0.1
Reply With Quote #10

xD Haha.
RedRobster is offline
Reply


Thread Tools
Display Modes

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 08:49.


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