Whenever I try to send a command to a client when he is disconnecting, it does not work.
Code:
public client_disconnect(id) {
client_cmd(id,"cl_realhud 0");
return PLUGIN_CONTINUE;
}
Any way to fix this? Perhaps in a client prethink:
Code:
public client_PreThink(id) {
if(!is_user_connected(id)) client_cmd(id,"cl_realhud 0");
return PLUGIN_CONTINUE;
}
__________________