[Ajuda] Academia
#10

Poow PT , Ajudou bastante maninhoow , mais e o seguinte eu conseguir um FS de luta so que o Dialog e feio e quando eu mudo a minha luta fico travado ai eu tenho que min desbugar mais a luta pega , vcs podem mudar o dialog e o coisa de ficar travado ?
pawn Code:
#include <a_samp>

new Menu:sistemadeluta;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Estilo de LUTA!");
    print("--------------------------------------\n");

    sistemadeluta = CreateMenu("Sistema de Luta", 1, 50.0, 180.0, 200.0, 200.0);
    AddMenuItem(sistemadeluta, 0, "Luta ~~> Boxe");
    AddMenuItem(sistemadeluta, 0, "Luta ~~> Kongfu");
    AddMenuItem(sistemadeluta, 0, "Luta ~~> Briga de Rua");
    AddMenuItem(sistemadeluta, 0, "Luta ~~> Agarra e Chute");
    AddMenuItem(sistemadeluta, 0, "Luta ~~> Normal");
    AddMenuItem(sistemadeluta, 0, "Sair / Fechar");

    return 1;
    }

//=============----- Comando -----============//

    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mudarluta", cmdtext, true, 10) == 0)
    {
    ShowMenuForPlayer(sistemadeluta, playerid);
    TogglePlayerControllable(playerid,0);
    return 1;
    }
    return 0;
    }

//=============----- Funзхes -----============//

    public OnPlayerSelectedMenuRow(playerid, row)
    {
    new Menu:current;
    current = GetPlayerMenu(playerid);
    if(current == sistemadeluta)
    {
    switch(row)
    {
    case 0:{
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);

    }
    case 1:{
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);

    }
    case 2:{
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);

    }
    case 3:{
    SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);

    }
    case 4:{
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);

    }
    case 5:{
    SendClientMessage(playerid, 0x00ff00ff, " Vocк fechou o Menu Luta ");

    }
    }
    }

    return 1;
    }
Reply


Messages In This Thread
Academia - by Tenhos - 24.04.2013, 12:06
Re: Academia - by VenoN - 24.04.2013, 12:28
Re: Academia - by Maklister - 24.04.2013, 12:37
Re: Academia - by Don_Speed - 24.04.2013, 12:52
Re: Academia - by Tenhos - 24.04.2013, 12:56
Re: Academia - by Falcon. - 24.04.2013, 12:57
Re: Academia - by Tenhos - 24.04.2013, 12:59
Re: Academia - by Delete_ - 24.04.2013, 13:25
Re: Academia - by PT - 24.04.2013, 13:26
Re: Academia - by Tenhos - 24.04.2013, 13:41

Forum Jump:


Users browsing this thread: 4 Guest(s)