13.09.2009, 05:11
hi i got this anti cheat but i have a problem
the problem is when a player enter with the id 0 his has kick for health hack then when a player enter with another id don't got kicked and the anticheat work fine
the problem it's only with the id 0 why??
thanks
here is the code
the problem is when a player enter with the id 0 his has kick for health hack then when a player enter with another id don't got kicked and the anticheat work fine
the problem it's only with the id 0 why??
thanks
here is the code
Quote:
forward GodmodeCheat(); |
Quote:
public GodmodeCheat(){ for(new i; i<MAX_PLAYERS; i++){ if(IsPlayerConnected(i) && !IsPlayerAdmin(i)){ new Floathealth; GetPlayerHealth(i, xhealth); if(xhealth>= 100) { SetPlayerHealth(i, 99); GetPlayerHealth(i, xhealth); if(xhealth== 100) { Kick(i); return 1; } return 1; } if(xhealth== 101){ Kick(i); return 1; } |
Quote:
SetTimer("GodmodeCheat",1000,1); |