AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Vix (Command Delayer) v1.0.1 (https://forums.alliedmods.net/showthread.php?t=134454)

DarkGod 08-04-2010 21:06

Vix (Command Delayer) v1.0.1
 
1 Attachment(s)
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

fezh 08-04-2010 21:08

Re: Vix (Command Delayer) v1.0
 
PHP Code:

static command[MaxCmdLen]
new 
index 

Don't create variables in loops

DarkGod 08-04-2010 21:10

Re: Vix (Command Delayer) v1.0
 
Quote:

Originally Posted by fezh (Post 1261929)
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.

Kreation 08-05-2010 02:38

Re: Vix (Command Delayer) v1.0
 
Nice, going to look at the source tomorrow. gj.

DarkGod 08-05-2010 20:07

Re: Vix (Command Delayer) v1.0.1
 
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)

DruGzOG 08-05-2010 20:22

Re: Vix (Command Delayer) v1.0.1
 
Add a link to supercentral :)

Overall, this plugin is great

Afro-Ankan 08-06-2010 20:25

Re: Vix (Command Delayer) v1.0.1
 
Looks awesome. Good job

a.aqua 08-06-2010 21:33

Re: Vix (Command Delayer) v1.0.1
 
Nice idea.

fang 08-18-2010 14:59

Re: Vix (Command Delayer) v1.0.1
 
I will combine this with amx_slap >:D Watch out dark god if you ever come into my server. ^^

RedRobster 08-18-2010 15:04

Re: Vix (Command Delayer) v1.0.1
 
xD Haha.


All times are GMT -4. The time now is 12:04.

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