06.03.2016, 14:08
How could i off my bars name, i tried this script to block nametag cleo hack, but health bars dont remove
SetTimer("AntiNameTag",500,true);
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); } } } } forward Float:GetPlayerDistanceFromPlayer(playerid, targetid); 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]); }