CheiN Posted June 26, 2012 Share Posted June 26, 2012 hey. i have a problem...(race gamemode) i want see how to make a bind (Bind M) and when i push it teleport me to a especifed area (the airport) but when the player is died (onPlayerwasted) and outputChatBox ((user.) Press "M" to go to the DD arena!) Please Helpme if you can help Link to comment
iFoReX Posted June 27, 2012 Share Posted June 27, 2012 function spawnIt() if not isPlayerInVehicle(source) then setElementPosition(source, PosX, PosY, PosZ) ---In PosX, PosY and PosZ put ur positions elseif isPlayerInVehicle(source) then removeEventHandler("onPlayerWasted",root,bindear) end end ) function bindear() if source ~= nil then outputChatBox("press "M" to go to the DD arena",source) bindKey(source,"M","down", spawnIt) end end ) addEventHandler("onPlayerWasted",root,bindear) try with it Link to comment
Castillo Posted June 27, 2012 Share Posted June 27, 2012 That's just a mess, it has a lot of syntax errors. Link to comment
CheiN Posted June 27, 2012 Author Share Posted June 27, 2012 Bindear? spawnIt? is that correct?? Link to comment
Castillo Posted June 27, 2012 Share Posted June 27, 2012 As I said above, his code is a mess, will not work. Link to comment
CheiN Posted June 27, 2012 Author Share Posted June 27, 2012 bad bad bad bad! a MESS!! helpme someone with a idea good structured Link to comment
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