Jump to content

lordkabab

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by lordkabab

  1. Hi, I know this script is getting on a bit, but does this work with DP 2.3? Also, if it does, why can't I connect to my local server even with the IP and post's set up properly?
  2. Will that work when they're in a vehicle?
  3. Ah thanks Philly, That's awesome. Although, now, with that, the controls would disable, but they would still be rolling though, so is there a way to fully stop them (sort of like the admin freeze)? Also, is there a way I can make the command only work when in the marker?
  4. How can I do this? I've seen it on an amunation script where the player enters a marker and then gets locked into it (so they can't move) untill thy finish buying weapons, how can I make it so that it un locks them when they type a command (it's for a toll booth so the command will be a payment one)?
  5. Like this? theToll = createObject ( 968, -1673.86, 522.395, 38.1261, 0, -90, -45 ) theBox = createObject ( 966, -1673.86, 522.395, 37.2995, 0, 0, -45 ) theSphere = createColSphere ( -1676.54, 525.193, 37.67, 5 ) function tollUp () moveObject ( theToll, 1000, -1673.86, 522.395, 38.1261, 0, 90, 0 ) setTimer ( tollDown, 2000, 1 ) end function tollDown () moveObject ( theToll, 1000, -1673.86, 522.395, 38.1261, 0, -90, 0 ) end addCommandHandler ( "sfseup", tollUp ) addCommandHandler ( "sfsedown", tollDown ) addEventHandler ( "onColShapeHit", theSphere, tollUp )
  6. Then why does it do it automatically when I load the script?
  7. Is there a way to use a 'wait' command or similar in my lua so it initiates afeter a set time. I know there is the setTimer thing, but starts on the script start, I want it to wait only when it's called.
  8. OMFG....... I didn't want theGate = createObject ( 969, 2665.281983, 281.563019, 6.676636, 0, 0, -5.497787 ) I wanted theGate = createObject ( 969, -2665.281983, -281.563019, 6.676636, 0, 0, -5.497787 ) And even then the rotation was stuffed up but is fine at a nice 45. Thanks for your help everyone
  9. Yeah, the output was: 01A69238 Does that help?
  10. Hai, I'm having trouble with my scipt for a gate I want, I've done one before exactly the same way, but this one isn't showing up for some reason. theGate = createObject ( 969, 2665.281983, 281.563019, 6.676636, 0, 0, -5.497787 ) function gateOpen () moveObject ( theGate, 2000, 2665.281982, 281.563019, 3.151623, 0, 0, 0 ) end function gateClose () moveObject ( theGate, 2000, 2665.281982, 281.563019, 6.676636, 0, 0, 0 ) end addCommandHandler ( "gateopen", gateOpen ) addCommandHandler ( "gateclose", gateClose )
×
×
  • Create New...