28.09.2015, 20:51
I am still able to see the players name above his head
PHP код:
CMD:hidename(playerid, params[])
{
if(PlayerInfo[playerid][VipLevel] == 1) return SendClientMessage(playerid, COLOR_RED, "Error: You must be an V.I.P player level 2!");
if(PlayerInfo[playerid][VipLevel] < 2) return SendClientMessage(playerid, COLOR_RED, "Error: You must be a V.I.P player!");
for(new i = 0; i < MAX_PLAYERS; i++)
{
IsPlayerConnected(i);
{
ShowPlayerNameTagForPlayer(playerid, i, 0);
GameTextForPlayer(playerid, "You have hidden your name for others", 4000, 3);
}
}
return 1;
}