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
PHP Code:
CMD:showtags(playerid,params[])
{
if(pInfo[playerid][pAdminLevel] >= 2)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);
GameTextForPlayer(playerid, "~W~Nametags ~R~on", 5000, 5);
}
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 i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
}
else {
SendClientMessage(playerid,-1,"*"COL_RED" You do not have the right admin permissions for this command!");
}
return 1;
}