Raised This Month: $114 Target: $400
 28% 

Command Repeater


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   v3x (159)
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 02-26-2006 , 21:02   Command Repeater
Reply With Quote #1

this plugin allows you to repeat (nearly) any command by prefixing it with a number and optionally an interval. if the cvar cr_adminsonly (default 0) is set to 1 then only admins can use this functionality.

this runs the commands through the player who called it, so you still have to have proper access levels for whatever command you are repeating.

version 0.1.1 fixes minor efficiency issues but you shouldn't be bothered to redownload if you are using 0.1.0. additionally the wonder twins make an appearance.

Example:

5 amx_slap kraugh 10
this will instantaneously slap player kraugh 5 times for 10 damage each

20/1.5 amx_slap kraugh 5
this will slap player kraugh 20 times for 5 damage each every 1.5 seconds (the first one is instant)
Attached Files
File Type: sma Get Plugin or Get Source (command_repeater.sma - 1494 views - 2.7 KB)
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 02-26-2006 , 21:23  
Reply With Quote #2

Haha, I can hear it now.

Z0mG! AB00S3!!!
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-26-2006 , 23:43  
Reply With Quote #3

Approved and is to STAY approved.

EOD!
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
o0panda
Member
Join Date: Sep 2005
Old 02-27-2006 , 01:48  
Reply With Quote #4

Wow nice plugin.
o0panda is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 02-27-2006 , 03:19  
Reply With Quote #5

Fun thinking into something real. Nice
__________________
bmann_420 is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-27-2006 , 09:25  
Reply With Quote #6

Quote:
Originally Posted by Brad
Non-Obligatory Suggestions by Brad
  1. Don't keep recreating the task. It's more efficient to create it once and set how many times it should loop.
Brad is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 02-27-2006 , 09:29  
Reply With Quote #7

Wow, very nice indeed!.. I'm loving this one
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 02-27-2006 , 13:11  
Reply With Quote #8

Quote:
Originally Posted by Chronic & Suicid3
Non-Obligatory Suggestions by Chronic and Suicid3

1. Don't use str_to_num(value) inside the for loop. Take it out and store it in a variable.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Jordan
Veteran Member
Join Date: Aug 2005
Old 02-27-2006 , 18:12  
Reply With Quote #9

I so feel like saying this:

Quote:
Originally Posted by Satan

Non-Obligatory Suggestions by Satan

1. Don't listen to them.
Very nice plugin! ^^ Maybe make a command that does it once per round or so?
Jordan is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 02-27-2006 , 18:54  
Reply With Quote #10

brad, suicid3: my plugin was last updated Mon Feb 27, 2006 1:54 am. your posts were made at Mon Feb 27, 2006 8:25 am and Mon Feb 27, 2006 12:11 pm respectively. translation: your suggestions were made after they were fixed.

if you are going to nitpick my plugin at least do so using the latest version.

thanks.

p.s. suicid3, i didn't know you and chronic were a couple. ;)
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
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 12:01.


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