1. If you want to catch "the game will restart in x seconds" then use this:
PHP Code:
public plugin_init(){
register_event("TextMsg", "event_game_restart", "a", "2=#Game_will_restart_in")
}
public event_game_restart(){
}
You can use it to send some messages to player like "The game is LIVE" or whatever...
2. To block chat message you need to add "return PLUGIN_HANDLED" at the end of function:
PHP Code:
public plugin_init()
{
register_plugin("Say /cmds", "1.0", "AmoneL");
register_clcmd("say /cmds", "test");
}
public test(id)
{
static name[32];
get_user_name(id, name, 31);
client_print(0, print_chat, "%s said /cmds", name);
return PLUGIN_HANDLED;
}
You should also fix your indentation and use of semi-colons (use them everywhere or don't use them at all).
__________________