need help with little plugin)))
Yesterday i decide to write little plugin, that change some value on clients, when there will connect to server...
My code ) Code:
new PLUGIN[]="changestset" ... we got query_client_cvar(id, "rate","rate") In this function blablabla check_st = 1 next we have yaebu(id) function ) There var check_st is 0 ... why??? :/ I can't understand... sr for my english) |
Re: need help with little plugin)))
Is that... a... slowhack??
|
Re: need help with little plugin)))
mybad..
i suggest make that varable global for each player meaning check_st[33] |
Re: need help with little plugin)))
Maybe you can use "client_putinserver" forward to instead "client_connect".
|
Re: need help with little plugin)))
@kp_uparrow:
You're wrong. They are called from query_client_cvar( id, const cvar[], const resultFunc[] ); |
Re: need help with little plugin)))
Also, comparing the strings isn't the most effective way since it's actually an integer you're comparing.
Better to use if( str_to_num(value_rate) != 66 ) If that still doesn't work, set check_st to str_to_num(value_rate) each time and see if you're even getting the value. |
| All times are GMT -4. The time now is 20:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.