Raised This Month: $35 Target: $400
 8% 

EventInfo


Post New Thread Reply   
 
Thread Tools Display Modes
Author
theY4Kman
Join Date: Jun 2007
Location: Yak
Plugin ID:
40
Plugin Version:
1.1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Displays information to users when certain game events occur, or when the user types a certain message.
    Old 06-25-2007 , 08:12   EventInfo
    Reply With Quote #1

    Arnold was a man with a problem. He was using EventScripts to send messages to players when certain events occurred. To remedy that, I created EventInfo.

    EventInfo hooks game events and chat messages to send messages to players. It allows you to send it through a Hint message (Thanks to _pRED ), Chat Message, or a Menu (Technically, a Panel). The complete documentation of how to configure the plugin events are inside the cfg file.

    Installation:
    • With .rar or .zip
      • Download package, and extract to your mod directory (cstrike, dod, etc)
    • With .smx and .cfg
      • Download the .smx by clicking the "Get Plugin" link below, and download the .cfg. Place the .smx in your addons/sourcemod/plugins folder, and the .cfg in your addons/sourcemod/configs folder.
    Credit:
    • [Arnold], for requesting it, and helping me with how it should work
    • _pRED, for the Hint Text stocks. Much <3
    • #sourcemod, for correcting my mistakes, big and small, challenging and stupid
    • Insomnia, for keeping me from going to sleep. Well, maybe it was the Mountain Dew...
    To Do:
    • Multiple types for each event
      • I believe I'll just use StrContains for each type, after putting the Key into a string.
    • Console commands to add and remove events
    • GUI for those console commands
    • Hook all commands, not just "say" and "say_team"
    • Titles, colors, and spacers for type 2 (Menu/Panel)
      • If anyone has any ideas on how I should go about parsing the Key to determine what to do with that line, don't hesitate to inform me!
    • Fix the menu so that you can press any number and it clears the menu
    Changelog:
    • 1.0.0
      • Initial release.
      • Three types of messages
    • 1.1.0
      • Added delaying to send messages x seconds after an event or chat trigger.
    Screenshots:

    This one's type 0 (Hint Text):


    Here is type 1 (Chat Text):


    Lastly, here's type 2 (Menu/Panel):
    Attached Files
    File Type: sp Get Plugin or Get Source (eventinfo.sp - 1723 views - 3.7 KB)
    File Type: cfg eventinfo.cfg (1.7 KB, 868 views)
    File Type: rar eventinfo.rar (6.0 KB, 805 views)
    File Type: zip eventinfo.zip (6.9 KB, 745 views)
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.

    Last edited by theY4Kman; 06-30-2007 at 23:28. Reason: New version: 1.1.1
    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
    [Arnold]
    Senior Member
    Join Date: May 2004
    Old 06-25-2007 , 17:19   Re: [PLUGIN] EventInfo
    Reply With Quote #2

    Great work, much appreciated.

    Arnold
    [Arnold] is offline
    benkoren
    Junior Member
    Join Date: Jun 2007
    Old 06-26-2007 , 17:49   Re: [PLUGIN] EventInfo
    Reply With Quote #3

    I haven't gotten to test it yet, but fabulous plugin! Is it also able to hook the events listed in /cstrike/resource/modevents.res, such as "hostage_killed"?
    benkoren is offline
    theY4Kman
    Join Date: Jun 2007
    Location: Yak
    Old 06-27-2007 , 01:41   Re: [PLUGIN] EventInfo
    Reply With Quote #4

    It is possible to hook every single event that exists, on any mod, at any time.
    __________________
    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
    pimpinjuice
    Veteran Member
    Join Date: May 2006
    Old 06-30-2007 , 20:38   Re: EventInfo
    Reply With Quote #5

    I reapproved, no cvar changed?
    __________________
    pimpinjuice is offline
    Send a message via AIM to pimpinjuice
    Chaos Llama
    Senior Member
    Join Date: Jul 2006
    Old 12-10-2007 , 20:49   Re: EventInfo
    Reply With Quote #6

    How do you set the config for chat commands?
    Chaos Llama is offline
    [Arnold]
    Senior Member
    Join Date: May 2004
    Old 12-17-2007 , 06:20   Re: EventInfo
    Reply With Quote #7

    Are you still working on the plugin or the upper to-do-list? Would be really great to have at least the "Multiple types for each event" and "Hook all commands, not just "say" and "say_team" features. Menus and the possibility to add events via console aren't that important IMHO. Thanks in advance.
    [Arnold] is offline
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 02-03-2008 , 11:38   Re: EventInfo
    Reply With Quote #8

    Quote:
    Originally Posted by Chaos Llama View Post
    How do you set the config for chat commands?

    yeah I'd like to know too.

    Would this work?

    Code:
     Example (To display a menu 3 seconds after a player joins):
           "player_chat hello"
         {
           "type" "2"
           "time" "10"
           "delay" "3"   
           "message" "Welcome to %h, %u\n--------------\nHave fun!"      
         }
    __________________
    Extreme_One is offline
    LocutusH
    Senior Member
    Join Date: Dec 2007
    Location: Hungary
    Old 04-01-2008 , 15:13   Re: EventInfo
    Reply With Quote #9

    Can you please modify the plugin, so that for a single event multiple messages can be defined?
    The script should choose from a numer of specified message texts randomly.
    __________________
    LocutusH is offline
    ColdFire
    Member
    Join Date: Jan 2008
    Old 04-02-2008 , 05:19   Re: EventInfo
    Reply With Quote #10

    I wonder if it could be possible to merge this plugin with SaySound for example to play a sound when some event occurs...
    ColdFire 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 01:44.


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