NotAvailable Posted April 26, 2010 Posted April 26, 2010 Hi, I made an Stunt zone (LS Airport) Why i ask help is because: I need a script (EXAMPLE) You pay 500$ at the Entrance of the LS Airport and the Gate opens for like 2 seconds And closes again. I really Appreciate it if someone has an Solution
dzek (varez) Posted April 26, 2010 Posted April 26, 2010 as far as i remember you got (on this forum few days ago) a solution for gate opening.. just add money checking and taking.. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
NotAvailable Posted April 28, 2010 Author Posted April 28, 2010 as far as i remember you got (on this forum few days ago) a solution for gate opening..just add money checking and taking.. ok thanks
JustDance Posted April 28, 2010 Posted April 28, 2010 x, y, z = getElementPosition(source) stats = 0 addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() setTimer(enterStuntZone, 2000, 0) end ) function enterStuntZone() if (getDistanceBetweenPoints3D ( x,y,z, xGate, yGate, zGate ) < 7 ) then -- xGate, yGa...... position of gate or airport terminal..... if stats == 0 then stats = 1 setTimer(setStats, 6000, 1) if getPlayerMoney(source) > 500 then setPlayerMoney(source, getPlayerMoney(source)-500) --here function of gate outputChatBox("Welcome to stunt zone!", source) setTimer(setStats, 6000, 1) else outputChatBox("You havent money for enter stunt zone!", source) end end else --close gate function....... end end setStats() stats = 0 end
NotAvailable Posted April 28, 2010 Author Posted April 28, 2010 x, y, z = getElementPosition(source) stats = 0 addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() setTimer(enterStuntZone, 2000, 0) end ) function enterStuntZone() if (getDistanceBetweenPoints3D ( x,y,z, xGate, yGate, zGate ) < 7 ) then -- xGate, yGa...... position of gate or airport terminal..... if stats == 0 then stats = 1 setTimer(setStats, 6000, 1) if getPlayerMoney(source) > 500 then setPlayerMoney(source, getPlayerMoney(source)-500) --here function of gate outputChatBox("Welcome to stunt zone!", source) setTimer(setStats, 6000, 1) else outputChatBox("You havent money for enter stunt zone!", source) end end else --close gate function....... end end setStats() stats = 0 end Instructions? sorry im enw to scripting
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now