[FilterScript] [FS] Fighting Styles!
#1

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
Reply
#2

WoW Nice one but i saw it somewhere else + rep
Reply
#3

Its not hard to script but good keep it up
Reply
#4

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

Nice
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)