Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DIALOG_FSTYLES 5009
- //-------------------------------Dialog Fighting style for [STADM]-------------------------------
- CMD:fstyles(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_FSTYLES, DIALOG_STYLE_LIST, "Fighting Styles", "Elbow\nBoxing\nGrabkick\nKneehead\nKungfu\nNormal", "Select", "Cancel");
- return 1;
- }
- if(dialogid == DIALOG_FSTYLES)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
- GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
- }
- if(listitem == 1)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
- GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
- }
- if(listitem == 2)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
- GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
- }
- if(listitem == 3)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
- GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
- }
- if(listitem == 4)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
- GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
- }
- if(listitem == 5)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
- GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
- }
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment