Jump to content

elf23

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by elf23

  1. shouldn't it be in the other creations?
  2. setElementData(source,"onplane",true,true) edit: sry, this is synchro. Try now function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end local count = 0 function vehicleAndromadaHandling(pe,ce) if isElement(ce) and getElementType(ce) == "vehicle" and getElementModel(ce) == 592 then setPedRotation(source, 180) setCameraTarget(source,source) setElementData(source,"entveh",ce,false) setElementData(source,"onplane",true,true) setElementInterior(source,9,315.64258,1031.65771,1947.08655) if isTimer(AndroTimer) ~= true then AndroTimer = setTimer( function() for index, player in ipairs(getElementsByType("player")) do if getElementData(player,"onplane") then count = 1 local x,y,z = getElementPosition(player) if getElementInterior(player) == 9 and z>1900 and z<1946.72034 then local px,py,pz = getElementPosition(getElementData(player,"entveh")) local rotx,roty,rotz = getVehicleRotation(getElementData(player,"entveh")) local distance = getDistanceBetweenPoints3D(px,py,pz,x,y,z) local newx, newy = getPointFromDistanceRotation(px,py,distance,rotz) setElementInterior(player,0,newx,newy,pz) setPedRotation(player,rotz) setCameraTarget(player,player) end else count = 0 end end if count == 0 then killTimer(AndroTimer) end end ,250,0) end end end addEventHandler("onPlayerContact",getRootElement(),vehicleAndromadaHandling)
  3. use onPlayerJoin or onPlayerLogin event...
  4. https://wiki.multitheftauto.com/wiki/DownloadFile It will be ready on 1.4 release.
  5. -- another way --server; local info = "string" triggerServerEvent("someEvent",root,info) --client; addEvent("someEvent",true) function share(info) outputChatBox(info) end addEventHandler("someEvent",root,share)
  6. meta.xml value="[0]" zmien na value="[1]"
  7. setPedTarget doesn't work with local player. You can make it only for other players.
  8. createColRectangle has infinite height. Try to use cube createColCuboid instead of it.
  9. You're crazy! Are you a Satanist?
  10. More and newer users, more and newer ideas
  11. elf23

    [WIP] SWAT4 mod

    I waiting for mta version with the possibility of adding custom skins.
  12. Hi everybody, i working on SWAT4 mod in MTA. Controls: 1 - Main weapon 2 - Second weapon (tazer) 3 - grenade 4 - grenade2 5 - grenade3 6 - gas 7 - C2 8 - picklock 9 - Fiber optiwand H - handcuffs M - scoreboard O - scoreboard B - scoreboard TAB - change team for command - red/ blue / yellow(all) MOUSE5 (middle button) - shout with original sound from swat4 UNKOWN - command table Sounds: - Background music from SWAT4 - Team voice sounds from SWAT4 I must resize health - HUD - must be perfect Progress: 5% First screens from beta: Modes: * Barricaded Suspects. Teams gain points by arresting or killing members of the other team. The team which hits the score limit first or has the highest score when the round time ends wins. * VIP Escort. A random member of the SWAT team is selected to be the VIP. The suspects must arrest the VIP, hold him for two minutes and then execute him. The SWAT team must escort the VIP to an extraction point on the map. If the suspects kill the VIP without holding him for two minutes, SWAT wins. If a SWAT team member kills the VIP, suspects win. * Rapid Deployment. Three to five bombs are placed throughout the map. The SWAT team must locate and disable them all within a time limit, if they fail to do so, suspects win. * Co-op. This allows the player to play through the single-player missions with up to four other people taking the place of computer-controlled SWAT officers. In the expansion, Co-op can run on custom missions and with up to ten players per game, which can further be split into two completely separate teams (red and blue) with a leader each. This is not similar to single player teams where an element leader controls both teams. cya
×
×
  • Create New...