Jump to content

sel3a

Members
  • Posts

    33
  • Joined

  • Last visited

Details

  • Gang
    SAES

sel3a's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Thanks mate just fixed something :PP Thank you mate i really appreciate it.
  2. Well still.. Not working pff Anyway fuck it.. i'll try later or i'll ask someone else, thanks mate anyway.
  3. well when i hit the col and after that i leave then hit the col again the gate will rotate too many times, and it will rotate randomly.. Is there any solution ? thanks.
  4. Well u didn't understood me, I meant that can u just help me witth this gate, i want to make like a real door, or a garage, that turn right and then turn back. Or like a real door, that rotate 90° then go back to 0° see what i mean ? thanks.
  5. hello guys, i hope you guys will answer my question!! I'd like to make a moving gate like in real life gate,I have this script but It didn't work, I wont the both object to move right and left same as this one http://max.wilsonsd.org:8080/Clip_Art/Pmpa1/buildings/doors/iron_gate_open_close_hc.gif anyone can help me to make it ? since it didn't work here is the script. i've tried to do this but heh.... didn't work a51gate1 = createObject ( 3049, 2491.2, -1661.3, 14.6 ) a51col = createColCircle ( 2492.2, -1663.3, 14.6 ) function opena51gates(thePlayer) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "Criminals" then moveObject (a51gate1, 8000, 2491.2, -1661.3, 14.6 ) setTimer (moveObject, 3500, 1, a51gate1, 1000, 3049, 2491.2, -1661.3, 14.6, 0, 0, 306) ob1 = setTimer (function () end, 5000, 1) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) function closea51gates(thePlayer) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "Criminals" then moveObject (a51gate1, 4000, 2491.2, -1661.3, 14.6 ) end end addEventHandler( "onColShapeLeave", a51col, closea51gates )
  6. I'd like to make a moving gate like in real life gate,I have this script but It didn't work, I wont the both object to move right and left same as this one http://max.wilsonsd.org:8080/Clip_Art/Pmpa1/buildings/doors/iron_gate_open_close_hc.gif But using 2 gate objects in mtasa, anyone can help me to make it ? since it didn't work here is the script. i've tried to do this but heh.... didn't work a51gate1 = createObject ( 3049, 2491.2, -1661.3, 14.6 ) a51col = createColCircle ( 2492.2, -1663.3, 14.6 ) function opena51gates(thePlayer) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "Criminals" then moveObject (a51gate1, 8000, 2491.2, -1661.3, 14.6 ) setTimer (moveObject, 3500, 1, a51gate1, 1000, 3049, 2491.2, -1661.3, 14.6, 0, 0, 306) ob1 = setTimer (function () end, 5000, 1) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) function closea51gates(thePlayer) local team = getPlayerTeam(thePlayer) if not team then return end if getTeamName(team) == "Criminals" then moveObject (a51gate1, 4000, 2491.2, -1661.3, 14.6 ) end end addEventHandler( "onColShapeLeave", a51col, closea51gates )
  7. Mate can i ask another question ?
  8. Thank you mate this was very helpful.
  9. ye i'm I'm using the default MTA:SA Interiors or a teleport script like this. telea1 = createMarker ( 1976.8664550781,986.17248535156,53.738746643066, "arrow", 1.5, 43, 0, 43 ) addEventHandler ("onMarkerHit", telea1, function ( player ) setElementPosition ( player, 1986.685546875,950.34997558594,10.8203125 ) setElementDimension ( player, 0 ) end )
  10. Hello gentlemen, i'm trying to do something for a while but my idea didn't succeed anyway i'm trying to make an locked interior like there is a Team called Crazy Boys locked for them they are the only players who are able to enter the .
  11. mate i did the script with the marker the color of it keep changing i can't put it but when i remove it it works the marker will be gone but the ''debug script 2'' its keep spamming with. WARNING: [test]\marker\add.lua: 38 Bad argument @ 'setMarkerColor' [Expected element at argument 1] this is the script /: sel3a1 = {} addCommandHandler ( "put", function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Admin" then return end x,y,z = getElementPosition ( plr ) r1,r2,r3 = getElementRotation ( plr ) Sel3a = createObject ( 3108, x, y, z-1, r1, r2, r3 ) table.insert ( sel3a1, Sel3a ) end) sel3a5002 = {} local v = {sel3a1,sel3a5002} local u = {sel3a1,sel3a5002} addCommandHandler ( "remove", function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Admin" then return end for k,v in ipairs (sel3a5002) do destroyElement ( v ) end for k,u in ipairs (sel3a1) do destroyElement ( u ) end end) addCommandHandler("put",function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Admin" then return end x,y,z = getElementPosition ( plr ) r1,r2,r3 = getElementRotation ( plr ) local Sel3a = createMarker ( x, y, z-1, 'cylinder', 1,255,0,0) setTimer(function () if Sel3a then setMarkerColor(Sel3a, math.random(0,255), math.random(0,255), math.random(0,255), 90) table.insert ( sel3a5002, Sel3a) end end,100,0) end)
  12. Thank you mate Works fine.
  13. Thanks mate works fine but there is one problem it comes a bit high in the middle of the ped!!!! check this link http://i.imgur.com/LESQXGr.jpg huh, how to solve the problem ? and thanks again
  14. Guys i am trying to make the marker when you type something it shows up i've made with the objects when you type the command it shows up. but i can't make when type the command a marker shows up. This is the script: sel3a1 = {} addCommandHandler ( "put", function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Criminals" then return end x,y,z = getElementPosition ( plr ) r1,r2,r3 = getElementRotation ( plr ) Sel3a = createObject ( 3108, x, y, z, r1, r2, r3 ) table.insert ( sel3a1, Sel3a ) end) addCommandHandler ( "remove", function(plr) team = getPlayerTeam ( plr ) if getTeamName ( team ) ~= "Criminals" then return end for k,v in ipairs ( sel3a1 ) do destroyElement ( v ) end end) i tried to change the CreateObject to createMarker like Sel3a = createMarker ( cylinder, x, y, z, r1, r2, r3 ) but it didn't work please help. Thanks
×
×
  • Create New...