How to hide health/armour bars to players?
#1

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

u need a function to hide/show health and armour bars for player
Reply
#3

yeah i ask for it
Reply
#4

Код:
ShowPlayerNameTagForPlayer(playerid, showplayerid, show)
Link here: ShowPlayerNameTagForPlayer
Reply
#5

Quote:
Originally Posted by Aly
Посмотреть сообщение
Код:
ShowPlayerNameTagForPlayer(playerid, showplayerid, show)
Link here: ShowPlayerNameTagForPlayer
Did u see him code bro?
Reply
#6

any know?
Reply
#7

Don't have a function to show the bars (health/armour)?
Like this function to name's
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)