Jump to content

Carlos23

Members
  • Posts

    10
  • Joined

  • Last visited

Carlos23's Achievements

Member

Member (5/54)

0

Reputation

  1. MTA object (createObject) Colshape is bad solution..
  2. It would be a problem. I put away a box by forklift in a marker. But the marker does not detect that it is. Why? This is MTA problem?
  3. if (isPedInVehicle(getLocalPlayer()) then
  4. The problem would be that the "onPickupHit '' event 'does not want to work on my own server. Has been applied to a test server, and I just want the system on the server and it worked perfectly. MTA 1.4
  5. function indit() setElementData(source, "zsaksz", 0) end addEventHandler ( "onPlayerJoin", getRootElement(), indit ) if (getElementData(source,"zsaksz")) == 0 then Does't work..
  6. I replaced function indit(thePlayer) setElementData(thePlayer, "zsaksz", 0) end addEventHandler ( "onPlayerJoin", getRootElement(), indit ) But does not work
  7. I changed, but the things behind the "If" so they do not go. I do not understand.
  8. addEventHandler( "onMarkerHit", pakol, pakolas ) if still not work Solution?
  9. function indit(thePlayer) setElementData(thePlayer, "zsaksz", 0) end addEventHandler ( "onResourceStart", getRootElement(), indit ) function pakolas(thePlayer) if getElementData(thePlayer,"zsaksz") == 0 then if (exports.global:hasItem(thePlayer, 158) ) then setElementData(thePlayer, "zsaksz", 1222) exports.global:takeItem(thePlayer, 158) exports.global:giveItem(thePlayer, 159, 1) setElementInterior(ped, 1) burger = createObject(1550,0,0,0) setElementDimension(burger, 19) setElementInterior(burger, 1) exports.bone_attach:attachElementToBone(burger,thePlayer,3,0,-0.25,0,0,50,180) -- triggerClientEvent(thePlayer, "guielo", thePlayer) else outputChatBox("Elöbb kéne egy zsák amibe pakolhatsz...", thePlayer, 255,100,0) end else outputChatBox("Már van rajtad egy táska. Egyszerre nem bírsz el többet." .. zsakrajta .. " ", thePlayer, 255,100,0) end end
×
×
  • Create New...