• Announcements

    • jhxp

      Forums are online again after a maintenance.   18/03/17

      MTA Forums maintenance is completed, although some automatic time-heavy tasks are still in process and will be finished eventually in background. Expect some features such as Forum Search to not display all results until all processes are finished. Please let us know if you spot a forum feature that worked correctly before the maintenance but does not work anymore now. Thanks. --MTA Team

TheMOG

Members
  • Content count

    163
  • Joined

  • Last visited

Community Reputation

6 Neutral

About TheMOG

  • Rank
    Busta
  • Birthday 14/05/98

Recent Profile Visitors

423 profile views
  1. for kills: exports.scoreboard:addScoreboardColumn("Kills",getRootElement(),7,55) addEventHandler("onPlayerWasted",root,function(totalAmmo,killer,killerWeapon,bodypart,stealth) if ( killer ) then local accountKiller = getPlayerAccount ( killer ) if ( getElementType(killer) == "player" ) then setAccountData(accountKiller,"Kills",tonumber(getAccountData(accountKiller,"Kills") or 0 ) + 1 ) setElementData(killer,"Kills",tonumber(getAccountData(accountKiller,"Kills"))) end end end) addEventHandler("onPlayerLogin",root,function(thePreviousAccount,theCurrentAccount,autoLogin) local account = getPlayerAccount ( source ) if not getAccountData( account,"account:Kills" ) then setAccountData( account,"account:Kills",0 ) end setElementData(source,"Kills",tonumber(getAccountData(account,"account:Kills" ) or 0 ) ) end) For total time (This is give +1 level every played hours) setTimer(function() if getElementData(localPlayer,"Level") then setElementData(localPlayer,"Level",getElementData(localPlayer,"Level") + 1) end end, 36*100000, 0)
  2. I sent u a pm
  3. I think you dont understand what i want to do. Anyway thanks your help.
  4. i want make that, when the box on the ground only then destroy the box, not when the resource start, because what you said, it creating the marker when resource start. I want that when the box on the ground and the player hit the marker destroy
  5. if i'm remove that, there is no marker
  6. Its not working. I tried to move the marker away like + x ,y ,z ,tried to make marker bigger but not. But when i'm jump on it then working
  7. local markerSize = 2.4 local object = createObject(objectID, Dx, Dy, Dz, rotX, rotY, rotZ) --< Creating the object >-- setElementDoubleSided(object,true) local arrowMarker = createMarker(0,0,0, "cylinder",markerSize, 255, 0, 0, 170 ) --< Creating the marker because attaching >-- attachElements(arrowMarker,object, 0, 0, 0, 0, 0, 0) -- < Attach... >-- now this looks like the ration is fine
  8. yes ofcurse, not destroying when im just run in to marker, but when i'm on the "box" (object) then destroying
  9. im tried buddy nothing.
  10. Is that okey, when i hit the marker nothing happens, but when i'm jump into the marker then destroying?
  11. hmm.. I'm stuck here, its always saying "Hit" and destroying everything when the resource start. local objectID = 964 --< The object ID >-- local Dx, Dy, Dz = 1348.4276123047, 1333.0045166016, 23.620292663574 --< Starting Position >-- local rotX, rotY, rotZ = 0, 0, 90 --< Rotation >-- local Ex, Ey, Ez = 1348.4276123047, 1333.0045166016, 9.8 --< Ending Position >-- local Speed = 15000 --< Speed >-- local markerSize = 2 local object = createObject(objectID, Dx, Dy, Dz, rotX, rotY, rotZ) --< Creating the object >-- local arrowMarker = createMarker(0,0,0, "cylinder",markerSize, 255, 0, 0, 170 ) --< Creating the marker because attaching >-- attachElements(arrowMarker,object, 0, 0, 2 ) -- < Attach... >-- function dropTHIS() moveObject(object, Speed, Ex, Ey, Ez) setElementDoubleSided(object,true) end addEventHandler("onResourceStart",root,dropTHIS) function hitT(hitElement) destroyElement(arrowMarker) destroyElement(object) outputChatBox("Hit") end addEventHandler("onMarkerHit",root,hitT)
  12. Hello guys. I wanna make an "airdrop" script, i think this is very easy, i just dont know what should i use for this. The idea: When the resource start,or the next "timer" start the script pick a random position from table, and starting dropping down the "object". When the object is on the ground, its creating marker or anything, (onPlayerHit) then give the player weapons, and ammos. Can anybody give me any tip, what should i use for this? Which functions
  13. Thats wrong. Here is local Marker1 = createMarker (1348.4315185547, -1150.189453125, 23.700422286987, "cylinder", 4, 255, 0, 0, 100) addEventHandler( "onMarkerHit", Marker1,function(source) for i,v in ipairs(getElementsByType("player")) do setElementPosition(source, 1637.2869873047, -1132.6866455078, 23.90625 ) outputChatBox("Welcome to Los Santos Boss Area!",source ) end end)
  14. try this local Marker1 = createMarker (1638.0502929688, -1152.9975585938, 22.5, "cylinder", 4, 255, 0, 0, 100) addEventHandler( "onMarkerHit", Marker1,function(source) if getElementType(source) == "player" then setElementPosition(source, 1637.2869873047, -1132.6866455078, 23.90625 ) outputChatBox("Welcome to Los Santos Boss Area!",source ) end end)
  15. Dont say making when you just editing leaked script