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

[Any] Command Cooldowns


Post New Thread Reply   
 
Thread Tools Display Modes
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 02-22-2014 , 19:28   Re: [Any] Command Cooldowns
Reply With Quote #11

If the command cannot be stopped by the server, then no. Retry, quit, etc. Not sure about fov_desired, will experiment with it after work.

EDIT: nope
__________________

Last edited by ddhoward; 02-23-2014 at 12:44.
ddhoward is offline
deathcurse
Senior Member
Join Date: Jun 2006
Location: UK
Old 04-30-2014 , 10:11   Re: [Any] Command Cooldowns
Reply With Quote #12

Great plugin, seems to be working well. Is it possible to have a command within the current config to allow us to customise the chat messages returned to the player? With colours if possible.
__________________
Clan of Doom: www.clanofdoom.co.uk
deathcurse is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-02-2014 , 07:19   Re: [Any] Command Cooldowns
Reply With Quote #13

I, errr. I suppose so? That actually would take me like 10 seconds to implement, sure. I will not use a colors/morecolors include, however.

EDIT: I LIED LOLOLOLOLOLOLOLOLOLOLOLOLOLOL
__________________

Last edited by ddhoward; 09-10-2014 at 05:04.
ddhoward is offline
The_Hairy_Baboon
Junior Member
Join Date: Oct 2011
Old 05-02-2014 , 21:39   Re: [Any] Command Cooldowns
Reply With Quote #14

Quote:
Originally Posted by ddhoward View Post
Until this is added (which it probably won't be) you can set a cooldown on sm_forcertd with this plugin.
I have this in my commandCooldowns.txt file
Code:
"sm_forcertd"
	{
		"cooldown"			"40"
		
	}
yet I can continually use sm_forcertd. (i set it so noone gets the override so I don't have to adjust admin permissions)

I loaded the plugin using "sm plugins load "commandcooldowns" in the console, said it loaded fine. I've also used "sm_commandcooldowns_reload" to try and reload the file, but it still isn't limiting my usage.

The only thing I can think of is "The cooldowns do not apply to client 0." but I don't know how to check if I am client 0, and if I am, how do I prevent people who join my server from being client 0 and therefore getting around this block?
The_Hairy_Baboon is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-02-2014 , 23:57   Re: [Any] Command Cooldowns
Reply With Quote #15

Quote:
Originally Posted by The_Hairy_Baboon View Post
how do I prevent people who join my server from being client 0 and therefore getting around this block?
Client 0 = RCON. The server itself, basically. Client 0 is not a player; it is the console. Basically, an with the RCON flag admin can use "sm_rcon sm_forcertd" to get around the block, and anyone with the rcon password can use rcon to get around the block.

Your issue is likely that you did not structure your txt file correctly. Please refer to the example on page 1.

Code:
"CommandCooldowns"
{
    "sm_forcertd"
    {
        "cooldown"            "40"
    }
}
__________________
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-10-2014 , 05:01   Re: [Any] Command Cooldowns
Reply With Quote #16

Updated to 14.0910. This update features ddhoward_updater integration, as well as morecolors compatibility. Basically, this update is entirely thanks to Dr. McKay.

Also, the KeyValues file now supports a "reply" key for each command, which allows you to customize the "you must wait blah blah" message given to clients.

EDIT: Updated again, fixed a bug I thought I fixed months ago
__________________

Last edited by ddhoward; 09-10-2014 at 05:27.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-22-2014 , 02:09   Re: [Any] Command Cooldowns
Reply With Quote #17

Updated to 14.0921. Changes include:
  • Added 'flags' keyvalue to replace 'defaultFlag'. 'defaultFlag' will be removed in a future version!!!
  • Added flagstring cleaning up and verification.
  • Added 'reset' keyvalue to allow server ops to specify that a command's cooldown should be RESET if a user tries to use a command too early.

The next update will introduce natives and forwards for interaction with other plugins.
__________________

Last edited by ddhoward; 09-22-2014 at 15:02.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-26-2014 , 09:12   Re: [Any] Command Cooldowns
Reply With Quote #18

Updated to 14.0926. The forwards and natives will wait until a future update. This update's changes include:
  • Added support for multiple commands sharing a cooldown (up to 8 commands per cooldown)
  • Reduced maximum number of cooldowns from 255 to 64
  • Removed "%i" support from replies
  • Replies now replace "{COMMAND_NAME}" and "{TIMELEFT}" with the appropriate information
  • Removed pointless RemoveCommandListener calls in OnPluginEnd
  • Added "shared" keyvalue key
  • Switched to using BuildPath() rather than hard-coding in addons/sourcemod/
  • Updated version of ddhoward_updater used
  • other minor internal code improvements
__________________
ddhoward is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 11-02-2014 , 15:09   Re: [Any] Command Cooldowns
Reply With Quote #19

Solution to this error?

Quote:
L 11/02/2014 - 13:54:27: [commandCooldowns.smx] "defaultFlag" in commandCooldowns.txt has been replaced with "flags". Please update your commandCooldowns config file appropriately.
Horsedick is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-02-2014 , 21:54   Re: [Any] Command Cooldowns
Reply With Quote #20

Replace all instances of the word "defaultFlag" in the file with the word "flags". "defaultFlag" is deprecated, and will stop working in a future update.
__________________

Last edited by ddhoward; 11-02-2014 at 21:55.
ddhoward is offline
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 10:58.


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