Un sistem de lupte Timp de lucru 10 min ... [pawn] /* Sistem de lupte de KiLLeRZoNe Contact at alex_x_2013 Contacteaza-ma la alex_x_2013 */ #include <a_samp> #define DIALOG_1 #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Sistemul de lupte se incarca"); print(" Sistemul de lupte s-a incarcat cu succes); print("--------------------------------------\n"); return 1; } #endif public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/fs", cmdtext, true, 10)==0) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"MODURI DE LUPTA","1.Normalstyle\n2.Kunfu\n3.Box\n4.Garbkick","Alege","Iesi"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response) { if(listitem == 0) { SetPlayerFightingStyle(playerid, 4); } if(listitem == 1) { SetPlayerFightingStyle(playerid, 6); } if(listitem == 2) { SetPlayerFightingStyle(playerid, 5); } if(listitem == 3) { SetPlayerFightingStyle(playerid, 15); } } else { SendClientMessage(playerid,0x0000FFAA,"Ai dat pe butonul Iesire"); } return 1; } return 1; } //---------------------------The-End--------------------------------------// //----------------------Script by KiLLeRZoNe---------------------------------------------// [/pawn]