View Single Post
Author Message
Mr.Waffle
Senior Member
Join Date: Dec 2011
Old 12-29-2011 , 18:48   block Game Comming ?
Reply With Quote #1

hello ,
i found this plugin:
PHP Code:
public plugin_init()
{
    
register_message(get_user_msgid("TextMsg"), "message_TextMsg")
}

public 
message_TextMsg(msg_idmsg_destmsg_entity)
{
    static 
buffer[32]
    
get_msg_arg_string(2buffer31)
    if(
equal(buffer"#Game_Commencing") || equal(buffer"#Game_will_restart_in"))
    {
        
server_cmd("sv_restart 0")
        
server_exec() // doubt you need this ... can't hurt though.
        
return PLUGIN_HANDLED
    
}
        return 
PLUGIN_CONTINUE

But that's not what I wanted , its block only the message .
but its not block the restart map .
It is possible to block it? if it is show me how.
thx .
Mr.Waffle is offline