Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------
- //----------------------------Fighting-Styles-----------------------------------
- //------------------------------------------------------------------------------
- #include <a_samp>
- #define MENU 5641
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Fighting Styles by Campionull ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/fight", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Select a Fighting Style","Boxing\r\nKung Fu\r\nKnee Head\r\nGrab Kick\r\nElbow","Select", "Cancel");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
- }
- if(listitem == 1)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
- }
- if(listitem == 2)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
- }
- if(listitem == 3)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
- }
- if(listitem == 4)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
- }
- }
- }
- if(dialogid == 1)
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Select a Fighting Style","Boxing\r\nKung Fu\r\nKnee Head\r\nGrab Kick\r\nElbow","Select", "Cancel");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment