godmode detect does not work, why? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: godmode detect does not work, why? (
/showthread.php?tid=308303)
godmode detect does not work, why? -
PawnoQ - 03.01.2012
hi,
as the title says, it always shows me Godmode message also if im not on infinite health and my health goes down after expllosion. Why?
pawn Код:
new Float:pHealthtmp[MAX_PLAYERS];
GetPlayerHealth(i,pHealthtmp[i]);
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
CreateExplosion(x, y, z, 12, 5.0);
new Float:hhh[MAX_PLAYERS];
GetPlayerHealth(i,hhh[i]);
if(pHealthtmp[i]>=hhh[i])SendClientMessageToAll(0xFF0000FF,"GodMode!!!");
else SetPlayerHealth(i,pHealthtmp[i]);
runing this in a timer 1 second true and in a loop (foreach)
Re: godmode detect does not work, why? -
coole210 - 03.01.2012
An explosion in a car sets your health to 0, which kills you instantly.
Re: godmode detect does not work, why? -
PawnoQ - 03.01.2012
??
What does that have to do with my question ??
??
Re: godmode detect does not work, why? -
cessil - 03.01.2012
because you're not waiting for anything to update for the client you're just creating an explosion and then checking if their health has changed like <1ms later.
I recommend you check out the link about anti-cheat tips in my signature
Re: godmode detect does not work, why? -
PawnoQ - 03.01.2012
i already did cess, cause of ur tut i came up with the idea to improve my anti cheat
Could u show me an example (short, only to get my head working
) how to start with an effective anti godmode?
Please
Thx to ur tut i already have a great anti wep hack buti dontknow how to do anti god mode
Please help me
Re: godmode detect does not work, why? -
cessil - 03.01.2012
well how about something like... checking if a players ping is lowish and they get hit by ~4 different players who also have lowish pings then alert the admins about potential health cheats