Admin flags are being ignored
This is the only place in my code, where g_iKills and g_iInfections increase.
In mostly it works good, but, sometimes admin player is getting his kills increased, what could be a reason ? Code:
public EventDeathMsg() |
Re: Admin flags are being ignored
Code:
simple don't give them admin flags with the flag z.... |
Re: Admin flags are being ignored
Quote:
|
Re: Admin flags are being ignored
post the full code....
and post what the ADMIN_USER is defined for you... |
Re: Admin flags are being ignored
### Censored ###
|
Re: Admin flags are being ignored
i don't know the code seems to be fine, but i'd recommend resetting those player-variables on client putinserver.
Code:
if you're still experiencing some issues try changing the logic of this code. PHP Code:
PHP Code:
|
Re: Admin flags are being ignored
hhhh, I will try to following:
replace client_putinserver with client_connect add client_disconnected and set values to 0 probably he joined with same ID, after someone left and he got his score, dunno, maybe, I will try like PHP Code:
PHP Code:
|
Re: Admin flags are being ignored
there's no need to use client_disconnect and client_putinserver, either just use on of them, you're just going to reset them twice when there's no need to.
client_putinserver should work fine there're no problems with using it.. Quote:
you're returning bitsum values and not 1 or 0 the logic values, which it might fails , it will be safer to just use the logic operators instead of just using the bitsum operators. |
Re: Admin flags are being ignored
ok, thanks for your help
|
Re: Admin flags are being ignored
Maybe use simpler bit conditions (IMO) if this is the root of your problem
PHP Code:
|
| All times are GMT -4. The time now is 14:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.