SA-MP Forums Archive
[DЪVIDA] Sobre estilo de luta. - 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: [DЪVIDA] Sobre estilo de luta. (/showthread.php?tid=281249)



[DЪVIDA] Sobre estilo de luta. - Bruno Pereira - 04.09.2011

Galera, alguem de vocкs sabe qual й a funзгo que define o estilo de luta do player?

@Edit

JA consegui


Re: [DЪVIDA] Sobre estilo de luta. - Samuka[GM] - 05.09.2011

Quote:

if (strcmp(cmdtext, "/Lutaderua", true)==0)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
return 1;
}

Se ajudei REPUTATION


Re: [DЪVIDA] Sobre estilo de luta. - Pharrel - 05.09.2011

Sгo raras as vezes q eu precisei vir ao forum pedir ajuda, quase tudo eu resolvo na SA-MP Wiki...

https://sampwiki.blast.hk/wiki/Fightingstyles


Re: [DЪVIDA] Sobre estilo de luta. - Lipe_Stronda - 05.09.2011

tenho um pronto

pawn Код:
#define FIGHTMENU                                                               1254
pawn Код:
// ============================ Estilos de Luta ] ========================
    if(!strcmp("/mudarluta", cmdtext, true))
    {
        ShowPlayerDialog(playerid, FIGHTMENU, DIALOG_STYLE_LIST, "\tMenu de {00D900}Lutas", "{00D900}Luta 1\n{00D900}Luta 2\n{00D900}Luta 3\n{00D900}Luta 4\n{00D900}Luta 5", "Selecionar", "Cancelar");
        return 1;
    }
pawn Код:
if(dialogid == FIGHTMENU)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
                SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 1)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
                SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 2)
            {
              SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
              SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 3)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
                SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 4)
            {
              SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
              SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 5)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
            }
        }
    }