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

EventInfo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 , 07: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 - 2595 views - 3.7 KB)
    File Type: cfg eventinfo.cfg (1.7 KB, 1260 views)
    File Type: rar eventinfo.rar (6.0 KB, 1049 views)
    File Type: zip eventinfo.zip (6.9 KB, 1023 views)
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.

    Last edited by theY4Kman; 06-30-2007 at 22: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
     



    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 09:46.


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