will briggs
Members-
Posts
423 -
Joined
-
Last visited
Everything posted by will briggs
-
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
-
I added it and its still pretty messed up... Could you correct it for me? Thanks - You help me with everything
-
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
-
hmm kk ill try that. Thanks
-
Hey, Does anyone know the location of the sound for the mapeditor save beep? Thanks
-
Thanks and sorry for the double post.
-
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
-
Ok, Sorry
-
Ive tested it, and it aint working, can you test it and see please...
-
Dude, the point of this was to ask if someone could correct it for me, can you do so?
-
Very good turbo cow
-
Nope but if you crawl through the DB's you can find one...
-
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
-
Hey, The resource is failing to start, are there any dependencies?
-
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
-
Sorry, i missread the quiery (roll) LOL Sorry
-
Cool Love the mod.
-
Try changing fadeCamera(source, true) to false...
-
Ok what would i get for being an admin, and what would i get for being a scripter...
-
All he's doing is trying to get more posts by his name, ive seen it on his other posts...
-
Dude, calm down the guys here are trying to help, no one will help you if you demand this...
-
Hey, What would i get for doing this
-
Dude thats quite a nice forum, i wouldnt really upgrade...
-
What would be in it for me? Edit : LOL @ Towncivillian + Love MTA v1.1 Good Work
