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

Say hook


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-13-2005 , 20:30   Say hook
Reply With Quote #1

Mattie, can you think about hooking say.....it would be helpful for admin commands.
The say text appears after all the player_say event runs right? So have a cvar set for say_display.
  • 0=dont show to anyone
    1=show only to player who typed
    2=show to all
Default for any player_say ofcourse being 2 (show to all)

Could be used like: (assuming say_display is already init)
player_say.cfg
if (event_var(text) equalto "hide") then setinfo say_display 0

Could this be done?
ichthys is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-13-2005 , 21:04  
Reply With Quote #2

or just just hide any text with /es_ or es or !es !admin....... whatever. Could maybe have a .cfg file to include all say prefix's to hide.
ichthys is offline
XE_ManUp
Senior Member
Join Date: Mar 2005
Location: Charlotte, NC
Old 05-14-2005 , 02:41  
Reply With Quote #3

Another couple of say commands I would like to see implemented:

es_msgt //displays message to all terrorists
es_msgct //displays message to all counter-terrorists

...just a thought.
XE_ManUp 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 09:55.


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