Name Distance
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)