Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. you probably added the part with it, Try it again: name="FBI"> name="Default" /> name="user.Har8" />>
  2. Jaysds1

    mass action

    try this: --416.40151977539,1677.1229248047,36.129425048828 peds = {} addEventHandler("onClientResourceStart",resourceRoot,function() --spawn_point_1 = createColRectangle(416.40151977539,1677.1229248047,100,50) -- spawn poinT spawn_point_1 = createColSphere(416.40151977539,1677.1229248047,36.129425048828,40) -- spawn point x,y,z = getElementPosition( spawn_point_1 ) count = 0 for i=0, 10 do -- 20 mobs peds[count+1] = createPed(0,x+math.random(-15,15),y+math.random(-15,15),z) end end) function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end return t; end addCommandHandler("warpme",function() setElementPosition(localPlayer,416.40151977539,1677.1229248047,36.129425048828) end) addCommandHandler("tests",function() local dx,dy,dz = getElementPosition( localPlayer ) ss = createPed(0,dx,dy,dz) end) addEventHandler("onClientElementColShapeHit",root,function(theShape, matchingDimension) if theShape == spawn_point_1 then if ( getElementType(source) == "player") and (source == localPlayer) then for k,v in ipairs(peds) do local ax,ay,az = getElementPosition( source ) setPedAimTarget(v,ax,ay,az) setPedControlState(v,"fire",true ) local zx,zy,zz = getElementPosition(source) local tx,ty,tz = getElementPosition(v) setPedRotation(v, findRotation(tx,ty,zx,zy) ); end end end end) You were creating over the first ped over and over again, so I used a count system as you could see on line 9-11
  3. Jaysds1

    Car spawn

    ok,ok,ok, Is everything solved here?
  4. Sorry, Can you run this MTADiag again then post the generated PasteBin Url. Please, I want to see what's currently on your MTA and your computer.
  5. try this: setTimer( function ( ) local s = getTickCount() local s = ( getTickCount() - s )/1000 local string = string.format( "%02d(h)%02d(m)%02d(s)", s/3600, s%3600/60, s%60 ) guiSetText(Label,string) end, 1000, 0 ) If this doesn't work, post the debug error(s). BTW, is Label defined in your script?
  6. try this: Server rain = createVehicle(563, 0, 0, 3, 0, 0, 45) ped1 = createPed(28, 0, 0, 10) attachElements(ped1, rain, 0, 5, 0) setTimer( function () if ped1 then giveWeapon ( ped1, 38, 5009, true) end end , 1000, 1) setTimer( function() if ped1 then local rx, ry, rz = getElementRotation(rain) setElementRotation(ped1, rx, ry, rz) end end , 50, 0) function setFire(play) local veh = getPedOccupiedVehicle(play) triggerClientEvent(play"setFiring",root, ped1, veh) end addCommandHandler("fire", setFire) Client: addEvent("setFiring", true) addEventHandler("setFiring",root, function(ped, veh) if ped then setTimer( function() local x, y, z = getElementPosition(veh) local rx, ry, rz = getElementRotation(veh) local x = x+100*math.cos(math.rad(rz+90)) local y = y+100*math.sin(math.rad(rz+90)) setPedAimTarget ( ped, x, y, z ) end , 50, 0) setPedControlState ( ped, "fire", true ) end end )
  7. Sorry, I'm looking at this and I don't see veh defined anywhere... Do you have another piece to the script?
  8. ok, Since your running on a NVidia Card, I noticed that the game needs to push the card more, so that's why most of the settings are on Max...
  9. try setting your "Anisotropic" to the max (x16).
  10. Jaysds1

    Add sound

    Do you have a client side to that resource?
  11. Jaysds1

    Add sound

    https://wiki.multitheftauto.com/wiki/Cli ... _functions
  12. Jaysds1

    Help problem

    Can you post your ACL.xml here using or at PasteBin(if you choose pastebin, can you remember to enable the xml syntax). BTW, Don't forget to remove any important info.
  13. Jaysds1

    MTA 1.4.0

    Twitter is enough Lol, I'm ok with Twitter for now...
  14. I had the same problem with my mothers laptop: viewtopic.php?f=104&t=42885&hilit=+laptop try enabling AeroDesktop, set the Aspect Ratio to Auto Disable the Grass Effect
  15. Well, that's what I thought when i was new here, but since it's someone else work then it's not really open-source... unless the scripter says that it's open-source
  16. Sorry, We can't help people who takes scripts from the community... If you ask the uploader/scripter for permission then maybe he could help you
  17. you could use: onClientPlayerWeaponFire after getting what the client/player shot at, use addEventHandler("onClientPlayerWeaponFire",localPlayer,function() if(getElementType(hitElement)=="vehicle)"then --YOUR CODE end end)
  18. Jaysds1

    Help problem

    I get the error to, it's not a big problem... If you really want to fix this error, I would suggest adding this in the ACL: name="function.refreshResource" access="true">> You could put it anywhere between name="MapEditor"><? and ?>>
  19. lol, don't give up, Can you post a screenshot of your MTA Video Settings please
  20. Jaysds1

    Car spawn

    ok, first of all, If you make a map in map editor, and saved it then it would make a resource... after all of that, you should edit the meta.xml and add ="server.lua" type="server" /> then make another file and call it "server.lua", in this file put this: addEventHandler("onVehicleExplode",root,function() toggleVehicleRespawn(source, true) setVehicleRespawnDelay(source, 10000) -- Respawn it in 10 seconds end)
  21. After deleting it, I ran the MTADiag.exe and it says that my "DirectX is not up-to-date", BTW here's the url: http://pastebin.com/UcdUxwjB
×
×
  • Create New...