Raised This Month: $ Target: $400
 0% 

suppress the message "the game will restart in x second


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 10-14-2004 , 18:01  
Reply With Quote #9

Thanks for info, Bailo.

Ok, well if that's case you can either update to 0.20 if you wish or you can try this:

Change:
Code:
register_message(get_user_msgid("TextMsg"), "hook_TextMsg") // Hook TextMsg message to function

To:
Code:
register_event("TextMsg", "event_RestartRound", "a", "2=#Game_will_restart_in")

Remove the entire function called hook_TextMsg and replace it with this:
Code:
public event_RestartRound() {     set_msg_block(get_user_msgid("TextMsg"), BLOCK_ONCE)         return PLUGIN_CONTINUE }

set_msg_block is another way to block messages. I'm just so used to using register_message that I rarely use it. But this should work in 0.16 AFAIK.
DS is offline
 



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 17:15.


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