Jump to content

KiLLeRZoNE

Membru
  • Posts

    29
  • Joined

  • Last visited

Everything posted by KiLLeRZoNE

  1. 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]
  2. Vezi la [pawn]public OnDialogResponse(playerid, dialogid, response, listitem,inputtext[]) { if(dialogid == id dialogului) { if(response) { if(listitem == 0) { //restul de linii } if(listitem == 1) { //restul de linii } } return 1; } [/pawn] Vezi la id dialogului sa nu fie altu;) Nu cred ca am fost foarte explicit.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.