Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. local utesek = {
  2. {4, "Normál"},
  3. {5, "Boxoló"},
  4. {6, "Kungfu"},
  5. {7, "knee_head"},
  6. {15, "grab_kick"},
  7. {16, "elbows"},
  8. };
  9.  
  10. local utes = 1;
  11.  
  12. ----------------------------------
  13.  
  14. local utocolor = tocolor(0,0,0,100);
  15. if exports.fv_engine:isInSlot(sx/2-(w/3)/2+60,sy/2+190,w/3,40) then
  16. utocolor = tocolor(0,0,0,200);
  17. if getKeyState("mouse1") and kTick+500 < getTickCount() then
  18. if utes+1 > #utesek then
  19. utes = 1;
  20. else
  21. utes = utes + 1;
  22. end
  23. triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
  24.  
  25. kTick = getTickCount();
  26. end
  27. end
  28. dxDrawRectangle(sx/2-(w/3)/2+60,sy/2+190,w/3,40,utocolor);
  29.  
  30. if utesek[utes] and utesek[utes][2] then
  31. dxDrawText("Ütőstílus: "..sColor2..utesek[utes][2],sx/2-(w/3)/2+60,sy/2+190,sx/2-
  32. (w/3)/2+60+w/3,sy/2+230,tocolor(255,255,255),1,font2,"center","center",false,false,false,true);
  33. else
  34. utes = 1;
  35. end
  36.  
  37. ----------------------------
  38.  
  39. triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
  40.  
  41. ----------------------------
  42.  
  43. xmlNodeSetAttribute(file,"utes",tostring(utes));
  44.  
  45. -----------------------------------
  46.  
  47. local stilo = tonumber(xmlNodeGetAttribute(file,"utes"));
  48. if stilo then
  49. utes = stilo;
  50. if utesek[utes] and utesek[utes][1] then
  51. triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
  52. end
  53. end
  54.  
  55. -----------------------------
  56.  
  57. if utesek[utes] and utesek[utes][1] then
  58. triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
  59. end
  60.  
  61. --------------------------------------------
  62.  
  63. if fileExists("utes.save") then
  64. fileDelete("utes.save");
  65. end
  66.  
  67. --------------------------------------
  68.  
  69. if fileExists("utes.xml") then
  70. fileDelete("utes.xml");
  71. end
  72.  
  73. --------------------------------
  74.  
  75. utes = 1;
  76.  
  77. --------------------------------------------
  78.  
  79. triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
  80.  
  81. ---------------------------------------------
  82.  
  83. addEvent("dash > utes",true);
  84. addEventHandler("dash > utes",root,function(player,id)
  85. setPlayerFightingStyle(player,id)
  86. end
  87. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement