Raised This Month: $66 Target: $400
 16% 

CommandReact


Post New Thread Reply   
 
Thread Tools Display Modes
Author
theY4Kman
Join Date: Jun 2007
Location: Yak
Plugin ID:
170
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Reacts when a client runs a command by running another command on the server-side.
    Old 08-27-2007 , 20:33   CommandReact
    Reply With Quote #1

    CommandReact executes commands server-side when a client runs a certain command.

    Here's an example (And why I created this plugin): With Mani Admin plugin, you can run ma_knives in order to restrict all weapons and let players only use their knives. However, the only way to take this off is to use ma_unrestrictall, which unrestricts all weapons. Since I have the AWP and autosnipers restricted, unrestricting all weapons means restricting these weapons after every knife round. Well, I don't remember those things. So I made an entry in the config file that runs three commands when ma_unrestrictall is executed somewhere:
    Code:
    ma_unrestrictall ma_restrict awp;ma_restrict sg550;ma_restrict g3sg1
    Whenever ma_unrestrictall is run, so are those ma_restrict commands!

    Note - This does not work for some commands. The ones that may apply to you are "say" and "say_team"

    ConVars:
    • cmdreact_version
      • The version of CommandReact
    Commands:
    • cmdreact_reload
      • Reloads the configuration file for CommandReact.
    Changelog:
    • 1.0.0
      • Initial Release
      • React to user's commands
    As with all my other plugins, I've included the source file and all the necessary config, along with a packaged version that you can extract to your mod directory (in .rar and .zip format).

    And thanks to everyone who helped in the #sourcemod channel...pRED, EKS, dalto, etc...
    Attached Files
    File Type: sp Get Plugin or Get Source (commandreact.sp - 1198 views - 2.3 KB)
    File Type: cfg commandreact.cfg (1.0 KB, 422 views)
    File Type: rar commandreact.rar (4.3 KB, 388 views)
    File Type: zip commandreact.zip (5.1 KB, 365 views)
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.
    theY4Kman is offline
    Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
    Fredd
    Veteran Member
    Join Date: Jul 2007
    Old 08-27-2007 , 20:53   Re: CommandReact
    Reply With Quote #2

    Cool
    __________________
    Need a private coder? AMXX, SourceMOD, MMS? PM me!
    Fredd is offline
    pimpinjuice
    Veteran Member
    Join Date: May 2006
    Old 08-28-2007 , 02:01   Re: CommandReact
    Reply With Quote #3

    Fun :]
    Approved.
    __________________
    pimpinjuice is offline
    Send a message via AIM to pimpinjuice
    theY4Kman
    Join Date: Jun 2007
    Location: Yak
    Old 08-28-2007 , 07:00   Re: CommandReact
    Reply With Quote #4

    Sweet
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.
    theY4Kman is offline
    Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
    Jhabull
    Junior Member
    Join Date: Feb 2010
    Old 02-16-2010 , 06:23   Re: CommandReact
    Reply With Quote #5

    it would be nice if it would work for say/say_team.
    There is Infected Release thingie for L4D2 in which, sometimes, players get stuck after charger attack so it might come in handy a say/say_team thingie for !unstuck or something.
    Jhabull 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 14:20.


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