Client info changed
Help me plz,
this problem: PHP Code:
PHP Code:
|
Re: Client info changed
change this... Code:
if(value[id] > 400)Code:
if(str_to_num(value) > 400) |
Re: Client info changed
Thanks very much, otherwise "client_infochanged" is not a good idea, and i have problem with "FM_PlayerPreThink", poorly written in the logs, roughly 20 lines the same. What is "FM_CVarGetString" ? Or where is problem?
|
Re: Client info changed
I doubt client_infochanged is called when a client changes cvars.
|
Re: Client info changed
Responds as if I change the nick... |
Re: Client info changed
Hi butthead ...
client_infochanged is called, when a client changes something in 'info' structure (see 'setinfo' console command) that is not purely client-side. |
Re: Client info changed
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:
|
Re: Client info changed
I'm not really into query_client_cvar.
First, it's resource expensive and slow method. Second, it's asynchronous ... what's not that bad really. Third and most important reason is that you need to call it really frequently to make it efficient for what you're doing. If you want to protect your KZ server from people using edge bugs with ease @ 20 fps, 3 sec is not enough. You can bind "fps_max 20" to a mouse key, use it just before hitting the edge and plugin will turn it off after 3 secs what's more than enough time to exploit. Calling it with 1 sec interval wouldn't be enough. The most effective method I've came across is using aliases to block certain client cvars in combination with query_client_cvar, which is called once though. Only downfall is that for aliases to wear off, users need to restart the game. |
| All times are GMT -4. The time now is 09:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.