Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Made By Meow22");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- if (strcmp("/fightstyle", cmdtext, true, 11) == 0)
- {
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "What Fight Style you Want Choose it!", "Normal\nBoxing\nKungfu\nKneeHead\nGrabKick\nElbow", "Change", "Cancel");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(dialogid)
- case 3:
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
- SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the Normal fight style!");
- }
- case 1:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
- SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the Boxing fight style!");
- }
- case 2:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
- SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the Kungfu fight style!");
- }
- case 3:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
- SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the KneeHead fight style!");
- }
- case 4:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
- SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the GrabKick fight style!");
- }
- case 5:
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
- SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the Elbow fight style!");
- }
- }
- }
- }
- }
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment