Hi,
i need help with pause.
I check admincmd.sma where is a good function of pause, but it's for new cmd.
I create function for pause with some conditons, but i need optimise.
I would send cmd pause, and now run my fuction with some conditons (minimum connection time, ...).
cmd pause and run fuction OR check bind and set bind pause
1) cmd pause block
Code:
public plugin_init()
{
register_clcmd("pause","func_test")
register_clcmd("func_pause","func_test")
}
public func_test(id)
{
client_print(id,print_chat,"It is great !")
return PLUGIN_CONTINUE
//but if I send cmd pause, this function not run
}
2) When it will not do. I need check client bind pause.
I test it with function query_client_cvar().
Every my test: Bad CVAR request
3) else if you are dont help me, i must hard send for client this and use func_pause
Code:
public client_putinserver(id)
{
set_task(15.0, "set_pause", id)
}
public set_pause(id)
{
client_cmd(id, "bind ^"pause^" ^"func_pause; pause^"")
}
But it's not good, becouse somebody don't have bind "pause" "pause".
sorry my english is bad
Thanks, BIGR.