Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ------------------------------------------------------------------
- ----------------------Credits by Marsigne-------------------------
- -----------Warning: Please keep credits in the dialog!------------
- ------------------------------------------------------------------
- ------------------------------------------------------------------
- */
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
- print(" Fighting System by Marsigne");
- print("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
- print("----------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/fs", cmdtext, true, 3) == 0)
- {
- //PLEASE KEEP CREDITS IN DIALOG
- ShowPlayerDialog(playerid, 1, 2, "What Fighting Style do you want? (Fighting System by Marsigne)", "Normal \nBoxing \nKung Fu \nKneehead \nGrabkick \nElbow", "OK", "Cancel");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(1)
- {
- case 1:
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerFightingStyle(playerid, 4);
- SendClientMessage(playerid, 0xFFFFFFAA, "Now you have Normal Fighting style!");
- }
- case 1:
- {
- SetPlayerFightingStyle(playerid, 5);
- SendClientMessage(playerid, 0xFFFFFFAA, "Now you have Boxing Fighting style!");
- }
- case 2:
- {
- SetPlayerFightingStyle(playerid, 6);
- SendClientMessage(playerid, 0xFFFFFFAA, "Now you have Kung Fu Fighting style!");
- }
- case 3:
- {
- SetPlayerFightingStyle(playerid, 7);
- SendClientMessage(playerid, 0xFFFFFFAA, "Now you have Kneehead Fighting style!");
- }
- case 4:
- {
- SetPlayerFightingStyle(playerid, 15);
- SendClientMessage(playerid, 0xFFFFFFAA, "Now you have Grabkick Fighting style!");
- }
- case 5:
- {
- SetPlayerFightingStyle(playerid, 26);
- SendClientMessage(playerid, 0xFFFFFFAA, "Now you have Elbow Fighting style!");
- }
- }
- }
- }
- }
- return 1;
- }
- /*
- ------------------------------------------------------------------
- ----------------------Credits by Marsigne-------------------------
- -----------Warning: Please keep credits in the dialog!------------
- ------------------------------------------------------------------
- ------------------------------------------------------------------
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement