CheiN Posted June 26, 2012 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
iFoReX Posted June 27, 2012 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
Castillo Posted June 27, 2012 Posted June 27, 2012 That's just a mess, it has a lot of syntax errors.
Castillo Posted June 27, 2012 Posted June 27, 2012 As I said above, his code is a mess, will not work.
CheiN Posted June 27, 2012 Author Posted June 27, 2012 bad bad bad bad! a MESS!! helpme someone with a idea good structured
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