[HELP] Fight Styles command
#5

Try this
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/fstyles", cmdtext, true, 11) == 0)
            {
                    SendClientMessage(playerid, -1,"___________|FIGHT STYLES|__________");
                    SendClientMessage(playerid, -1,"/f2 - Boxing");
                    SendClientMessage(playerid, -1,"/f3 - Kungfu");
                    SendClientMessage(playerid, -1,"/f4 - KneeHead");
                    SendClientMessage(playerid, -1,"/f5 - Grabkick");
                    SendClientMessage(playerid, -1,"/f6 - Elbow");
                    return 1;
            }
//--------------------COMMAND FOR FIGHTING STYLES
            if (strcmp("/f1", cmdtext, true, 11) == 0)
            {
                      SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
                        SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the Normal fight style! -|");
                    return 1;
             }
            if (strcmp("/f2", cmdtext, true, 11) == 0)
            {
                        SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
                        SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the Boxing fight style! -|");
                    return 1;
            }
             if (strcmp("/f3", cmdtext, true, 11) == 0)
            {
                       SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
                        SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the Kungfu fight style! -|");
                    return 1;
            }
             if (strcmp("/f4", cmdtext, true, 11) == 0)
            {
                       SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
                       SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the KneeHead fight style! -|");
                    return 1;
            }
            if (strcmp("/f5", cmdtext, true, 11) == 0)
            {
                      SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
                      SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the GrabKick fight style! -|");
                    return 1;
            }
            if (strcmp("/f6", cmdtext, true, 11) == 0)
            {
                       SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
                        SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the Elbow fight style! -|");
                    return 1;
            }
           return 0;
}
Reply


Messages In This Thread
[HELP] Fight Styles command - by XYZero - 07.03.2015, 11:46
Respuesta: [HELP] Fight Styles command - by JuanStone - 07.03.2015, 11:56
Re: [HELP] Fight Styles command - by XYZero - 07.03.2015, 12:16
Re: [HELP] Fight Styles command - by ReD_HunTeR - 07.03.2015, 12:24
Re: [HELP] Fight Styles command - by Karan007 - 07.03.2015, 12:37
Re: [HELP] Fight Styles command - by XYZero - 07.03.2015, 13:07
Re: [HELP] Fight Styles command - by Karan007 - 07.03.2015, 13:09
Re: [HELP] Fight Styles command - by M4D - 07.03.2015, 13:10
Re: [HELP] Fight Styles command - by ReD_HunTeR - 07.03.2015, 13:11
Re: [HELP] Fight Styles command - by J0sh... - 11.09.2015, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)