Is It Possible?
#1

Is It Possible To Hide Name Tag and Marker From Players In Server And The Players That Connect The Server.
Reply
#2

Yep

pawn Код:
ShowPlayerMarkers(0);
ShowNameTags(0);
Put these things in OnGameModeInit and it won't show markers & nametags anymore.
Reply
#3

I Am Using Ladmin For My Server Can I Make A Cmd Of It. like /hidemarker To hide maker and /showmarker to show marker /hidetag to hide nametag and /showtag to show name tag.
And Other Thing Only Admins Can Use those cmds.
Reply
#4

Is Thr Any One That CAn Help Me About This Matter. I Mean Only Specified People Can Hide Their Marker Other Cant Hide THere Markers.
Reply
#5

Hello shaikh007,

here are the commands you wanted to have:

/hidemarker
pawn Код:
if(!strcmp(cmdtext, "/hidemarker", true))
{
    if(PlayerInfo[playerid][Level] < 3) return SendClientMessage(playerid, red, "ERROR: You need to be Level 3 to use this command!");
    for(new i=0; i<MAX_PLAYERS; i++) SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) ); //from wiki
    return SendClientMessage(playerid, green, "Your marker is now invisible for everyone.");
}
/showmarker
pawn Код:
if(!strcmp(cmdtext, "/showmarker", true))
{
    if(PlayerInfo[playerid][Level] < 3) return SendClientMessage(playerid, red, "ERROR: You need to be Level 3 to use this command!");
    for(new i=0; i<MAX_PLAYERS; i++) SetPlayerMarkerForPlayer( i, playerid, GetPlayerColor( playerid ) ); //from wiki
    return SendClientMessage(playerid, green, "Your marker is now seeable for everyone.");
}
/hidetag
pawn Код:
if(!strcmp(cmdtext, "/hidetag", true))
{
    if(PlayerInfo[playerid][Level] < 3) return SendClientMessage(playerid, red, "ERROR: You need to be Level 3 to use this command!");
    for(new i=0; i<MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, false);
    return SendClientMessage(playerid, green, "Your nametag is now invisible for everyone.");
}
/showtag
pawn Код:
if(!strcmp(cmdtext, "/showtag", true))
{
    if(PlayerInfo[playerid][Level] < 3) return SendClientMessage(playerid, red, "ERROR: You need to be Level 3 to use this command!");
    for(new i=0; i<MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, true);
    return SendClientMessage(playerid, green, "Your nametag is now seeable for everyone.");
}
I hope I could help you.
Note: These will only work correctly if SetPlayerColor was used.

Jeffry
Reply
#6

Thank You Jeffery For Help It Worked
Reply
#7

Quote:
Originally Posted by shaikh007
Посмотреть сообщение
Thank You Jeffery For Help It Worked
No problem. Enjoy it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)