30.11.2012, 11:40
Use the function ShowPlayerNameTagForPlayer.
Example Command:
pawn Код:
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
}
pawn Код:
CMD:hideme(playerid, params[])
{
if(Hidden[playerid] == 1)
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid, i, true);
}
}
}
else if(Hidden[playerid] == 0)
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
}
}
return 1;
}