Jump to content

'-'


xeon17

Recommended Posts

wiki example.

function scriptCreateInf ( commandName ) 
      local luckyBugger = getLocalPlayer() -- get the local player 
      local x, y, z = getElementPosition ( luckyBugger ) -- retrive the player's position 
      createVehicle ( 411, x, y, z + 10 ) -- create the tank 10 units above them 
      outputChatBox ( "You got a Infernus!!", 255, 0, 0) 
end 
--Attach the 'scriptCreateTank' function to the "infernus" command 
addCommandHandler ( "infernus", scriptCreateInf ) 

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