//The player who typed /nameoff will not be able to see any other players nametag.
if (strcmp(\"/nameoff\", cmdtext, true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
GameTextForPlayer(playerid, \"~W~Nametags ~R~off\", 5000, 5);
return 1;
}
if (strcmp(\"/nameon\", cmdtext, true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);
GameTextForPlayer(playerid, \"~W~Nametags ~R~on\", 5000, 5);
return 1;
}
Forrás