[AJUDA] Ocultar Nick
#1

Quero ocultar o nick dos players, e quando digito o comando que coloquei no GM:
pawn Код:
if (strcmp("/nickoff", cmdtext, true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
GameTextForPlayer(playerid, "~W~Nicks Desativos ~R~off", 5000, 5);
return 1;
}
o nick do player desaparece e reaparece rapidamente, alguem faz ideia em que parte do GM pode estб causando o conflito? agradeзo.
Reply
#2

new bool:Nick;

PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (
strcmp("/nickoff", cmdtext, true) == 0)
    {
        if(!
Nick) 
        { 
            
Nick = true;
            
ShowNameTags( 1 ); 
            
GameTextForPlayer(playerid, "~W~Nicks ativados ~g~ON", 5000, 5);
        }
        else 
        {
            
Nick = false;
            
ShowNameTags( 0 ); 
            
GameTextForPlayer(playerid, "~W~Nicks Desativos ~R~off", 5000, 5);
        }
        return 
1;
    }
    return 
0;
} 
Reply
#3

Nгo funcionou..
Reply
#4

pawn Код:
if (strcmp("/nickoff", cmdtext, true) == 0)
{
ShowPlayerNameTagForPlayer(playerid, false);//so vai desativar no jogador, o loop iria apagar todos..
GameTextForPlayer(playerid, "~W~Nicks Desativos ~R~off", 5000, 5);
return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)