 |
|
Member
Join Date: May 2007
Location: Nitra, Slovakia
|

12-23-2008
, 05:27
Re: Client info changed
|
#7
|
Hi alien, thx I understand ... but I need to fix client cheats (cl_sidespeed, developer, fps_max), just for these cvars responds only to change 'info' structure...
Trying another way.. It may be as follows?
PHP Code:
public client_putinserver(id) {
new param[1];param[0] = id set_task(3.0, "checkCvars", id, param, 1, "b")
public checkCvars(param[]) {
new id = param[0] if(!is_user_alive(id)) { return } query_client_cvar(id, "cl_sidespeed", "ClientCvarResult") query_client_cvar(id, "developer", "ClientCvarResult") query_client_cvar(id, "fps_max", "ClientCvarResult")
}
public ClientCvarResult(id, const cvar[], const value[]) {
new name[32], auth[32] get_user_name(id, name, 31) get_user_authid(id, auth, 31) if(equal(cvar, "cl_sidespeed") && str_to_num(value) != 400) { log_amx("Check sidespeed change >>>> Nick: %s / steam id: %s /// change to value: %s", name, auth, value) client_cmd(id,"cl_sidespeed 400")
} if(equal(cvar, "developer") && str_to_num(value) != 0) { log_amx("Check developer change >>>> Nick: %s / steam id: %s /// change to value: %s", name, auth, value) client_cmd(id,"developer 0")
} if(equal(cvar, "fps_max") && str_to_num(value) != 101) { log_amx("Check fps_max change >>>> Nick: %s / steam id: %s /// change to fps_max: %s", name, auth, value) client_cmd(id,"fps_max 101")
}
return PLUGIN_CONTINUE } }
__________________
Last edited by butthead; 12-23-2008 at 05:45.
|
|
|
|