Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local utesek = {
- {4, "Normál"},
- {5, "Boxoló"},
- {6, "Kungfu"},
- {7, "knee_head"},
- {15, "grab_kick"},
- {16, "elbows"},
- };
- local utes = 1;
- ----------------------------------
- local utocolor = tocolor(0,0,0,100);
- if exports.fv_engine:isInSlot(sx/2-(w/3)/2+60,sy/2+190,w/3,40) then
- utocolor = tocolor(0,0,0,200);
- if getKeyState("mouse1") and kTick+500 < getTickCount() then
- if utes+1 > #utesek then
- utes = 1;
- else
- utes = utes + 1;
- end
- triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
- kTick = getTickCount();
- end
- end
- dxDrawRectangle(sx/2-(w/3)/2+60,sy/2+190,w/3,40,utocolor);
- if utesek[utes] and utesek[utes][2] then
- dxDrawText("Ütőstílus: "..sColor2..utesek[utes][2],sx/2-(w/3)/2+60,sy/2+190,sx/2-
- (w/3)/2+60+w/3,sy/2+230,tocolor(255,255,255),1,font2,"center","center",false,false,false,true);
- else
- utes = 1;
- end
- ----------------------------
- triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
- ----------------------------
- xmlNodeSetAttribute(file,"utes",tostring(utes));
- -----------------------------------
- local stilo = tonumber(xmlNodeGetAttribute(file,"utes"));
- if stilo then
- utes = stilo;
- if utesek[utes] and utesek[utes][1] then
- triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
- end
- end
- -----------------------------
- if utesek[utes] and utesek[utes][1] then
- triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
- end
- --------------------------------------------
- if fileExists("utes.save") then
- fileDelete("utes.save");
- end
- --------------------------------------
- if fileExists("utes.xml") then
- fileDelete("utes.xml");
- end
- --------------------------------
- utes = 1;
- --------------------------------------------
- triggerServerEvent("dash > utes",localPlayer,localPlayer,utesek[utes][1]);
- ---------------------------------------------
- addEvent("dash > utes",true);
- addEventHandler("dash > utes",root,function(player,id)
- setPlayerFightingStyle(player,id)
- end
- end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement