Jump to content

how i make a teleporter bind?


CheiN

Recommended Posts

Posted

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

My scripts: toptimes on scoreboard (server21)

Screen on login(scren)

Score on scoreboard (score)

Posted
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

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted

That's just a mess, it has a lot of syntax errors.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Bindear? spawnIt? is that correct??

My scripts: toptimes on scoreboard (server21)

Screen on login(scren)

Score on scoreboard (score)

Posted

As I said above, his code is a mess, will not work.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

bad bad bad bad! a MESS!! helpme someone with a idea good structured

My scripts: toptimes on scoreboard (server21)

Screen on login(scren)

Score on scoreboard (score)

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...