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

Command Limiter


Post New Thread Reply   
 
Thread Tools Display Modes
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-25-2008 , 14:07   Re: Command Limiter
Reply With Quote #11

This doesnt work...

I have this in my command_limit.txt:
Quote:
// Format: command type [limit] [time] [access]
// command: text of the command you want to be limited
// type: cl, srv or con
// limit: how many times the command can be used before the counter is reset (by time, if specified, or on round end)
// time: Reset the command counter each (this) seconds
// access: Limit only valid for users with this admin flags. Use '*' for everyone. Check users.ini for more info.
// Example: 'amx_help cl 1 60 z' - Non-Admin clients can only use amx_help one time each 60 seconds
amx_revive cl 1 300 *
And i (i have abcdefghijklmnopqrstuv admin) can revive like 10000000000 times...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 10-25-2008 , 18:38   Re: Command Limiter
Reply With Quote #12

Quote:
Originally Posted by crazyeffect View Post
This doesnt work...

I have this in my command_limit.txt:


And i (i have abcdefghijklmnopqrstuv admin) can revive like 10000000000 times...
Try again with the new version, and make sure the plugins is the FIRST in plugins.ini.
__________________

Community / No support through PM
danielkza is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-27-2008 , 14:21   Re: Command Limiter
Reply With Quote #13

How can i do it so the admins can only use 1 time amx_teleport OR teleportmenu each 300 seconds?

Tryed amx_teleport cl 1 300*, but it didnt work...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 10-27-2008 , 15:56   Re: Command Limiter
Reply With Quote #14

Quote:
Originally Posted by crazyeffect View Post
How can i do it so the admins can only use 1 time amx_teleport OR teleportmenu each 300 seconds?

Tryed amx_teleport cl 1 300*, but it didnt work...
You can't do this yet, but i'll work on it for the next version, that will be finished in a couple days.
__________________

Community / No support through PM
danielkza is offline
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 10-28-2008 , 02:31   Re: Command Limiter
Reply With Quote #15

sry can u explain how to use this. i dont understand the commands or the config file that needs to be created
letgoofmyeggs is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-28-2008 , 04:16   Re: Command Limiter
Reply With Quote #16

Insctructions:

- Install the plugin in amxmodx/plugins folder...
- Then put the name of the plugin (command_limit.amxx) in your amxmodx/configs/plugins.ini file
- Now start your server... There will come a file called: command_limit.txt in your configs file...
* If it doesnt come... Just make a file called command_limit.txt... And put the limits and commands in there... (I putted the text that needs to go in to it down here...)

How to limit a command?

1. Type the command that you want...
2. Then type cl,srv or con behind it...
(Commands for cl/srv/con
___| -- cl - Only for Clients (Players) -- |___
___| -- srv - Only for the server -- |___
___| -- con - Clients and Server -- |___
3. Then type a number of how much times they can use this command...
4. Then type an amount of seconds... (Take the roundtime... 5 mins = 300secs )

Example: "amx_revive cl 1 300..."
"Now an admin can revive 1 time in 300 seconds (5 minutes)"

I hope that i helped ...

---

Example of what that needs to be in the command_limit.txt file:
Quote:
// Format: command type [limit] [time] [access]
// command: text of the command you want to be limited
// type: cl, srv or con
// limit: how many times the command can be used before the counter is reset (by time, if specified, or on round end)
// time: Reset the command counter each (this) seconds
// access: Limit only valid for users with this admin flags. Use '*' for everyone. Check users.ini for more info.
// Example: 'amx_help cl 1 60 z' - Non-Admin clients can only use amx_help one time each 60 seconds
Example of how your plugins.ini needs to be:
Quote:
; AMX Mod X plugins
command_limit.amxx
; Admin Base - Always one has to be activated
admin.amxx
;admin_sql.amxx

; Basic
admincmd.amxx
adminhelp.amxx
adminslots.amxx
multilingual.amxx

... (All other plugins) ...
__________________

Last edited by crazyeffect; 10-28-2008 at 14:09.
crazyeffect is offline
Send a message via MSN to crazyeffect
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 10-28-2008 , 13:51   Re: Command Limiter
Reply With Quote #17

Just so you know, the command types mean:

cl - Valid only for players
srv - Valid only for the server
con - Valid for both
__________________

Community / No support through PM
danielkza is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 10-28-2008 , 14:10   Re: Command Limiter
Reply With Quote #18

Thanks, i added it to my instructions

Maybe make put it in a text file... So the peoples get some instructions with it

Because its not one of the easyest plugins to install...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 11-02-2008 , 08:38   Re: Command Limiter
Reply With Quote #19

o thanks.. i never wulda figured it out.. haha
+k

EDIT: would it b possible to make this per steam id
letgoofmyeggs is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 11-02-2008 , 08:45   Re: Command Limiter
Reply With Quote #20

Yes... Good Idea... Only should i do it with the flags... abcdefg...

But he is first making it so you can use the teleportmenu only once(or more) a round...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Reply



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 11:59.


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