local loszercp = createMarker(3522.0004882812, -5126.5463867188, 14,\"cylinder\", 2, 124, 197, 118, 255) local leadocp = createMarker(3518.9252929688, -5143.4194335938, 14, \"cylinder\", 2, 255, 0, 0, 255)local kezben = 0function felpakolas (thePlayer)if kezben == 0 then loszerdoboz=createObject(2358,0,0,6000,0,0,0)attachElements ( loszerdoboz,thePlayer, 0, 0.4, 0.4, 0, 0 ,180 )setPedAnimation(thePlayer, \"CARRY\", \"crry_prtial\", 0, true, false, true, true) setElementCollisionsEnabled(loszerdoboz,false)setPedWalkingStyle ( thePlayer, 123 )outputChatBox(\"vidd a ládát a repülőhőz\",thePlayer)kezeben = 1 else outputChatBox(\"tele a kezed\",thePlayer)endendaddEventHandler ( \"onMarkerHit\", loszercp, felpakolas ) function lepakolas (thePlayer) detachElements(loszerdoboz,thePlayer)destroyElement (loszerdoboz)outputChatBox(\"leadtad\",thePlayer)endaddEventHandler ( \"onMarkerHit\", leadocp, lepakolas )
local loszercp = createMarker(3522.0004882812, -5126.5463867188, 14,\"cylinder\", 2, 124, 197, 118, 255) local leadocp = createMarker(3518.9252929688, -5143.4194335938, 14, \"cylinder\", 2, 255, 0, 0, 255)local kezben = 0loszedoboz = {}function felpakolas (thePlayer) if getElementData(thePlayer, \"doboz\") == false then loszerdoboz[getPlayerSerial(thePlayer)] = createObject(2358,0,0,6000,0,0,0) attachElements ( loszerdoboz[getPlayerSerial(thePlayer)],thePlayer, 0, 0.4, 0.4, 0, 0 ,180 ) setPedAnimation(thePlayer, \"CARRY\", \"crry_prtial\", 0, true, false, true, true) setElementCollisionsEnabled(loszerdoboz[getPlayerSerial(thePlayer)],false) setPedWalkingStyle ( thePlayer, 123 ) setElementData(thePlayer, \"doboz\", true) outputChatBox(\"vidd a ládát a repülőhőz\",thePlayer) else outputChatBox(\"tele a kezed\",thePlayer) endendaddEventHandler ( \"onMarkerHit\", loszercp, felpakolas ) function lepakolas (thePlayer) detachElements(loszerdoboz[getPlayerSerial(thePlayer)],thePlayer) destroyElement (loszerdoboz[getPlayerSerial(thePlayer)]) outputChatBox(\"leadtad\",thePlayer) setElementData(thePlayer, \"doboz\", false) setElementData(thePlayer, \"leadott\", getElementData(thePlayer, \"leadott\") or 0 + 1)endaddEventHandler ( \"onMarkerHit\", leadocp, lepakolas )
local loszercp = createMarker(3522.0004882812, -5126.5463867188, 14,\"cylinder\", 2, 124, 197, 118, 255) local leadocp = createMarker(3518.9252929688, -5143.4194335938, 14, \"cylinder\", 2, 255, 0, 0, 255)local kezben = 0loszedoboz = {}function felpakolas (thePlayer) if getElementData(thePlayer, \"doboz\") == false then loszerdoboz[getPlayerSerial(thePlayer)] = createObject(2358,0,0,6000,0,0,0) attachElements ( loszerdoboz[getPlayerSerial(thePlayer)],thePlayer, 0, 0.4, 0.4, 0, 0 ,180 ) setPedAnimation(thePlayer, \"CARRY\", \"crry_prtial\", 0, true, false, true, true) setElementCollisionsEnabled(loszerdoboz[getPlayerSerial(thePlayer)],false) setPedWalkingStyle ( thePlayer, 123 ) setElementData(thePlayer, \"doboz\", true) outputChatBox(\"vidd a ládát a repülőhőz\",thePlayer) else outputChatBox(\"tele a kezed\",thePlayer) endendaddEventHandler ( \"onMarkerHit\", loszercp, felpakolas ) function lepakolas (thePlayer) detachElements(loszerdoboz[getPlayerSerial(thePlayer)],thePlayer) destroyElement (loszerdoboz[getPlayerSerial(thePlayer)]) outputChatBox(\"leadtad\",thePlayer) setElementData(thePlayer, \"doboz\", false) setElementData(thePlayer, \"leadott\", getElementData(thePlayer, \"leadott\") or 0 + 1)endaddEventHandler ( \"onMarkerHit\", leadocp, lepakolas ) Valahogy így kell kinéznie, de nem teszteltem, ha van benne hiba akkor írd le és javítom Ha a 10. -nél szeretnél valamit csinálni amikor leadja akkor csak nézd meg hogy a \"leadott\" az egyenlő-e 10-el.
function lead(line, stop)exports.global:giveMoney(client, 15000)addEvent(\"lead\",true)addEventHandler(\"lead\", getRootElement(), lead)
triggerServerEvent(\"lead\", getLocalPlayer(), lead, 1)