Jump to content

will briggs

Members
  • Posts

    423
  • Joined

  • Last visited

Everything posted by will briggs

  1. Hey, I have this script, and when i enter the colshape it basicly does alot of crazy stuff, i need the barrier to move up when enter and down when leave, but it rotates randomly on colshape enter. Heres my code Barrier = createObject ( 968, 1544.69, -1630.8, 13.3, 0, 89, 90 ) Col = createColTube(1544.8, -1630.3720703125, 11.8182258605957, 10, 10) addEventHandler('onColShapeHit', Col, function(hitElement, dim) if getElementType(hitElement) == 'player' then if getTeamName(getPlayerTeam" class="kw2">getPlayerTeam" class="kw2">getPlayerTeam(hitElement))=="Police" then playSoundFrontEnd ( 41 ) moveObject(Barrier, 3000, 1544.69, -1630.8, 13.3, 0, 0, 90) end end end ) addEventHandler('onColShapeLeave', Col, function(hitElement, dim) if getElementType(hitElement) == 'player' then if getTeamName(getPlayerTeam" class="kw2">getPlayerTeam(hitElement))=="Police" then moveObject(Barrier, 3000, 1544.69, -1630.8, 13.3, 0, 89, 90) end end end ) Can anyone help me with this and correct my code? Thanks
  2. I added it and its still pretty messed up... Could you correct it for me? Thanks - You help me with everything
  3. Hey, I changed it over to moveobject and its started doing alot of crazy stuff when i enter the colshape, can someone test it for me or tell me whats wrong with it... I think its because of the order setelementrotation was in... Heres the code Barrier = createObject ( 968, 1544.69, -1630.8, 13.3, 0, 89, 90 ) Col = createColTube(1544.8, -1630.3720703125, 11.8182258605957, 10, 10) addEventHandler('onColShapeHit', Col, function(hitElement, dim) if getElementType(hitElement) == 'player' then if getTeamName(getPlayerTeam(hitElement))=="Police" then playSoundFrontEnd ( 41 ) moveObject(Barrier, 3000, 1544.69, -1630.8, 13.3, 0, 0, 90) end end end ) addEventHandler('onColShapeLeave', Col, function(hitElement, dim) if getElementType(hitElement) == 'player' then if getTeamName(getPlayerTeam(hitElement))=="Police" then moveObject(Barrier, 3000, 1544.69, -1630.8, 13.3, 0, 89, 90) end end end ) Thanks
  4. Hey, Does anyone know the location of the sound for the mapeditor save beep? Thanks
  5. Thanks and sorry for the double post.
  6. Does anyone know how to make it move in one sweep, not just cut to the position? Barrier = createObject ( 968, 1544.69, -1630.8, 13.3, 0, 89, 90 ) Col = createColTube(1544.8, -1630.3720703125, 11.8182258605957, 10, 10) addEventHandler('onColShapeHit', Col, function(hitElement, dim) if getElementType(hitElement) == 'player' then setElementRotation (Barrier, 0, 0, 90) end end ) addEventHandler('onColShapeLeave', Col, function(hitElement, dim) if getElementType(hitElement) == 'player' then setElementRotation (Barrier, 0, 90, 90) end end ) Thanks
  7. Ive tested it, and it aint working, can you test it and see please...
  8. Dude, the point of this was to ask if someone could correct it for me, can you do so?
  9. Nope but if you crawl through the DB's you can find one...
  10. Hey, Me again Well im trying to make a gate open on col shape hit but it isnt working... Barrier = createObject ( 968, 1544.6271972656, -1630.3720703125, 13.8182258605957, 0, 0, 0 ) <colrectangle posX="1534.768" posY="-1630.3720703125" posZ="13.8182258605957" width="100" depth="61.8"/> toggle = 0 function toggleBarrier(thePlayer,command) if toggle == 0 then setElementRotation (Barrier, 0, 0, 277) toggle = 1 else setElementRotation (Barrier, 0, 0, 0) toggle = 0 end end function toggleBarrier(thePlayer,command) if toggle == 0 then setElementRotation (Barrier, 0, 0, 277) toggle = 1 else setElementRotation (Barrier, 0, 0, 0) toggle = 0 end end addEventHandler( "onMarkerHit", marker, toggleBarrier ) addEventHandler( "onMarkerHit", marker, toggleBarrier ) Please can someone correct me ? Thanks
  11. Hey, The resource is failing to start, are there any dependencies?
  12. Hi, I posted a while ago about a problem with my mta server, I have identified the problem as a memory leak causing it to eventually crash the server computer (hardware). Any ideas? Thanks
  13. will briggs

    Problems

    Sorry, i missread the quiery (roll) LOL Sorry
  14. will briggs

    Problems

    Try changing fadeCamera(source, true) to false...
  15. Ok what would i get for being an admin, and what would i get for being a scripter...
  16. All he's doing is trying to get more posts by his name, ive seen it on his other posts...
  17. will briggs

    Problems

    Dude, calm down the guys here are trying to help, no one will help you if you demand this...
  18. The interior ID is 3
  19. Hey, What would i get for doing this
  20. will briggs

    |SW| Site job

    Dude thats quite a nice forum, i wouldnt really upgrade...
  21. What would be in it for me? Edit : LOL @ Towncivillian + Love MTA v1.1 Good Work
×
×
  • Create New...