12.07.2011, 17:37
Is It Possible To Hide Name Tag and Marker From Players In Server And The Players That Connect The Server.
ShowPlayerMarkers(0);
ShowNameTags(0);
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.");
}
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.");
}
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.");
}
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.");
}