04-28-2008, 10:13 PM
/namesoff and /nameson command, to hide names!
Code:
if(strcmp(cmdtext, "/namesoff", true) == 0)
{
for(new a=0; a<MAX_PLAYERS; a++)
{
ShowPlayerNameTagForPlayer(playerid, a, false);
}
SendClientMessage(playerid, COLOR_YELLOW, "You have sucessfully turned NameTags off. Type /nameson To Turn Them Back On!");
return 1;
}
if(strcmp(cmdtext, "/nameson", true) == 0)
{
for(new a=0; a<MAX_PLAYERS; a++)
{
ShowPlayerNameTagForPlayer(playerid, a, true);
}
SendClientMessage(playerid, COLOR_YELLOW, "You have sucessfully turned NameTags on!");
return 1;
}

![[Image: vintage_arma_ii_dayz_signature_by_mindwav3-d5lwc0s.png]](http://fc09.deviantart.net/fs70/f/2012/327/7/5/vintage_arma_ii_dayz_signature_by_mindwav3-d5lwc0s.png)