AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   block Game Comming ? (https://forums.alliedmods.net/showthread.php?t=175078)

Mr.Waffle 12-29-2011 18:48

block Game Comming ?
 
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 .


All times are GMT -4. The time now is 15:31.

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