SA-MP Forums Archive
Name Distance - 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: Name Distance (/showthread.php?tid=431744)



Name Distance - 2K9CON - 19.04.2013

Hello, in the server name tags are disabled (DayZ Survival server) you can only see them when you get really close! So i would like to make it so admins can see them from far away (E.g. /showtags /hidetags) So its a lot easier to catch hackers etc



Any idea on how i would do this?




Thanks :3


Re: Name Distance - Dj_maryo1993 - 19.04.2013

https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer


Re: Name Distance - 2K9CON - 19.04.2013

Quote:
Originally Posted by Dj_maryo1993
View Post
PHP Code:
CMD:showtags(playerid,params[])
{
    if(
pInfo[playerid][pAdminLevel] >= 2)
    {
        for(new 
0MAX_PLAYERSi++) ShowPlayerNameTagForPlayer(playeriditrue);
        
GameTextForPlayer(playerid"~W~Nametags ~R~on"50005);
    }
    else {
        
SendClientMessage(playerid,-1,"*"COL_RED" You do not have the right admin permissions for this command!");
    }
    return 
1;
}
CMD:hidetags(playerid,params[])
{
    if(
pInfo[playerid][pAdminLevel] >= 2)
    {
        for(new 
0MAX_PLAYERSi++) ShowPlayerNameTagForPlayer(playeridifalse);
        
GameTextForPlayer(playerid"~W~Nametags ~R~off"50005);
    }
    else {
        
SendClientMessage(playerid,-1,"*"COL_RED" You do not have the right admin permissions for this command!");
    }
    return 
1;

Thankyou Forgot about that.