[Ajuda] Comando /Camuflar
#3

Eu nгo gosto muito de cуdigos prontos mas nem todo mundo sabe programar, entгo:

Код:
if(!strcmp(cmdtext,"/camuflar",true))
{
    if(IsPlayerAdmin(playerid))
    {
        if(GetPVarInt(playerid,"Camuflado"))
        {
            if(GetPVarInt(playerid,"Camuflado") == 1)
	    {
                   for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, true);
		   SetPVarInt(playerid,"Camuflado",0);
	    }
            else
	    {
	           for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, false);
		   SetPVarInt(playerid,"Camuflado",1);
	    }
        }else
        {
                 for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, false);
                 SetPVarInt(playerid,"Camuflado",1);
        }
    }else SendClientMessage(playerid, -1, "[ERRO]: Vocк nгo tem permissгo para usar este comando.");
}
OBS: Cуdigo nгo testado, suponho que deva funcionar como deve.

OBS2: Jб que o OP tem outra questгo, nгo, nгo hб como, se quiser sumir, vocк pode mandar o jogador para outro mundo dentro do jogo, mas ele tambйm nгo verб os outros jogadores, e os objetos criados via cуdigo podem sumir.
Reply


Messages In This Thread
Comando /Camuflar - by TropaDeElite - 11.03.2017, 21:08
Re: Comando /Camuflar - by TropaDeElite - 11.03.2017, 21:20
Re: Comando /Camuflar - by Detoria - 11.03.2017, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)