SA-MP Forums Archive
[AJUDA] Comando /invisivel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Comando /invisivel (/showthread.php?tid=284828)



[AJUDA] Comando /invisivel - Mattos - 20.09.2011

Pessoas eu tenho um comando que quem me ajudou a fazer foi o @RockFire. Pesquisei atй no SAMP wiki tudo certinho e cheguei a essa formula pra fazer quando o cara botasse /invisivel o icone dele do mapa sumir:

pawn Код:
if (strcmp(tmpcmd, "/invisivel", true) == 0)
    {
        if (3 > bd_ler_int(pName(playerid),"AdminLevel") > 1)
        {
        for( new i; i < MAX_PLAYERS; i++ )
        {
             SetPlayerMarkerForPlayer( i , playerid , 0xFFFFFF00 );
        }
        SendClientMessage(playerid, COR_AMARELA, "| Seu нcone estб invisнvel para os outros players.");
        } else SendClientMessage(playerid, COR_VERMELHA, "| Vocк precisa ser VIP Completo no mнnimo para utilizar este comando.");
        PlayerPlaySound(playerid,1057,0.0,0.0,0.0); return 1;
    }

Bom... testando com uma pessoa, ela me disse que assim que eu usei o comando meu icone ficou invisivel por um piscar de olhos mas depois voltou o que era antes.
Nгo uso nada em OnPlayerUpdate no meu sv que justificaria a cor voltar a anterior...
Alguem sabe me dizer o que й?


Re: [AJUDA] Comando /invisivel - [O.z]Caroline - 20.09.2011

tenta::
pawn Код:
if(!strcmp(tmpcmd, "/invisivel", true))
    {
        if (3 > bd_ler_int(pName(playerid),"AdminLevel") > 1)
        {
            for( new i; i < MAX_PLAYERS; i++ )
            {
                 if(i != playerid)
                 {
                    SetPlayerMarkerForPlayer(i, playerid,0xFFFFFF00 );
                 }
            }
            SendClientMessage(playerid, COR_AMARELA, "| Seu нcone estб invisнvel para os outros players.");
        }
        SendClientMessage(playerid, COR_VERMELHA, "| Vocк precisa ser VIP Completo no mнnimo para fazer este evento.");
        PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
        return 1;
    }
edit:
tente novamente:
pawn Код:
if(!strcmp(tmpcmd, "/invisivel", true))
    {
        if(bd_ler_int(pName(playerid),"AdminLevel") == 0)
            return SendClientMessage(playerid, COR_VERMELHA, "| Vocк precisa ser VIP Completo no mнnimo para fazer este evento.");

        for( new i; i < MAX_PLAYERS; i++ )
        {
            if(i != playerid)
            {
                SetPlayerMarkerForPlayer(i, playerid,0xFFFFFF00 );
            }
        }
        SendClientMessage(playerid, COR_AMARELA, "| Seu нcone estб invisнvel para os outros players.");
        PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
        return 1;
    }



Re: [AJUDA] Comando /invisivel - Mattos - 20.09.2011

Deu certo nao =/ mais alguma idйia?

edit:

nao tinah visto seu edit e to testando ele agora


Re: [AJUDA] Comando /invisivel - Mattos - 20.09.2011

ah... mas vc sу mudou ali o return da mensagem de erro... sу por o else no final... nao muda nada.... alguem tem alguma idйia de fazer esse icone sumir?


Re: [AJUDA] Comando /invisivel - [O.z]Caroline - 20.09.2011

tenta este:
http://forum.sa-mp.com/showpost.php?...33&postcount=1


Re: [AJUDA] Comando /invisivel - Mattos - 20.09.2011

Ja tinha tentado desse post mesmo... e nada... deve ser algum conflito no gm


Re: [AJUDA] Comando /invisivel - [O.z]Caroline - 20.09.2011

tambйm acho que й um conflito porque nгo estou ha ver nenhum erro.


Re: [AJUDA] Comando /invisivel - Mattos - 20.09.2011

pra falar verdade nem eu ¬¬

ainda mais por causa disso https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer


Re: [AJUDA] Comando /invisivel - Mattos - 21.09.2011

Consegui xD com o codigo que tinha postado mesmo... O problema era um conflito no GM mesmo... Obrigado por ter tentado ajudar.