07.03.2015, 11:46
Код:
#include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Made By Meow22"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } if (strcmp("/fstyles", cmdtext, true, 11) == 0) { ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Fighting Style's", "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; } #endif