[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(playerid, cmdtext[]){dcmd(fightstyle, 12, cmdtext);return 0;}
dcmd_fightstyle(playerid, params[]) {
#pragma unused params
ShowPlayerDialog(playerid, 111111, DIALOG_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(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 111111 && response)
{
switch(listitem)
{
case 0: SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
case 1: SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
case 2: SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
case 3: SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
case 4: SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
case 5: SetPlayerFightingStyle (playerid, FIGHT_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!