Improve my anti-nametag
#1

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);

Код:
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]);
}
Reply
#2

This won't stop hacks of such. So be it has it's own name tags, for example.
Reply
#3

You can't.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)