24.09.2015, 17:27
I want stop this hac'k:
https://www.youtube.com/watch?v=-vWDVDcA1kA
My script is working (on name tag), but if u use this ceat u can see health / armour bar to distances players... How to fix it?
My script:
https://www.youtube.com/watch?v=-vWDVDcA1kA
My script is working (on name tag), but if u use this ceat u can see health / armour bar to distances players... How to fix it?
My script:
Код:
#define MAX_DISTANCIA 30.0 // Gamemode init SetTimer("AntiNameTag",500,true); forward AntiNameTag(); public AntiNameTag() { foreach(Player,playerid) { foreach(Player,i) { if(i == playerid) continue; if(GetPlayerDistanceFromPlayer(playerid, i) <= MAX_DISTANCIA) { ShowPlayerNameTagForPlayer(playerid,i,true); } else { ShowPlayerNameTagForPlayer(playerid,i,false); } } } } Float:GetPlayerDistanceFromPlayer(playerid, targetid) { new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); return GetPlayerDistanceFromPoint(targetid, Pos[0], Pos[1], Pos[2]); }