Jump to content

how i make a teleporter bind?


CheiN

Recommended Posts

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
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 :D

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...