SA-MP Forums Archive
[FilterScript] [FS] Fighting Styles! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Fighting Styles! (/showthread.php?tid=298903)



[FS] Fighting Styles! - forgottenkings - 23.11.2011

Fight Style Switcher
Description:This is a simple fighting style switcher || it is dcmd formatted

PHP код:
#include <a_samp>
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
public OnPlayerCommandText(playeridcmdtext[]){dcmd(fightstyle12cmdtext);return 0;}
dcmd_fightstyle(playeridparams[]) {
#pragma unused params
ShowPlayerDialog(playerid111111DIALOG_STYLE_LIST"Fighting Style's","FIGHT_STYLE_NORMAL\nFIGHT_STYLE_BOXING\nFIGHT_STYLE_KUNGFU\nFIGHT_STYLE_KNEEHEAD\nFIGHT_STYLE_GRABKICK\nFIGHT_STYLE_ELBOW""Select""Cancel");return 1;}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 111111 && response)
    {
        switch(
listitem)
        {
               case 
0SetPlayerFightingStyle (playeridFIGHT_STYLE_NORMAL);
               case 
1SetPlayerFightingStyle (playeridFIGHT_STYLE_BOXING);
            case 
2SetPlayerFightingStyle (playeridFIGHT_STYLE_KUNGFU);
            case 
3SetPlayerFightingStyle (playeridFIGHT_STYLE_KNEEHEAD);
            case 
4SetPlayerFightingStyle (playeridFIGHT_STYLE_GRABKICK);
            case 
5SetPlayerFightingStyle (playeridFIGHT_STYLE_ELBOW);
        }
        return 
1;
    }
    return 
0;

PasteBin: Click Me Plz

Direct: Click Me Plz


Re: [FS] Fighting Styles! - YoUnG_KiD - 23.11.2011

WoW Nice one but i saw it somewhere else + rep


Re: [FS] Fighting Styles! - marwan - 23.11.2011

Its not hard to script but good keep it up


Re: [FS] Fighting Styles! - Epic_Mickey - 23.11.2011

Quote:
Originally Posted by marwan
Посмотреть сообщение
Its not hard to script but good keep it up
@Marwan "Did you make something better? "

Nice


Re: [FS] Fighting Styles! - YoUnG_KiD - 23.11.2011

Quote:
Originally Posted by marwan
Посмотреть сообщение
Its not hard to script but good keep it up
I dont like Boasters.... ! i lyk that mickey!