Jump to content

need help!


GerardWay

Recommended Posts

Posted

First, this should go in the "Scripting" section: viewforum.php?f=91

Second, how can we help you if you don't post the code?

Third, do what the second says.

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

lol sorry for posting in the wrong place castillo :)

Gate1 = createObject ( 969, 209.69999694824, 1875.5, 12.39999961853, 0, 0, 0 ) 
  
function ToggleGate(thePlayer,command) 
moveObject (Gate1, 4000, 210.10000610352, 1875.5999755859, 8.8999996185303) 
end 
addCommandHandler ( "mgo", ToggleGate ) 
  

after that i want the gate to close automatically plz :)

560x95_FFFFFF_FF9900_000000_000000.png
Posted (edited)
Gate1 = createObject ( 969, 209.69999694824, 1875.5, 12.39999961853, 0, 0, 0 ) 
  
function ToggleGate(thePlayer,command) 
moveObject (Gate1, 4000, 210.10000610352, 1875.5999755859, 8.8999996185303) 
setTimer(moveObject,6000,1,Gate1,4000,209.69999694824, 1875.5, 12.39999961853) 
end 
addCommandHandler ( "mgo", ToggleGate ) 

This will close it after 6 seconds.

Edited by Guest

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

You're welcome.

P.S: Some administrator move this topic to the "Scripting" section :).

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

Yes, my bad, copy the code again, I forgot about an argument :P.

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
Gate1 = createObject ( 969, 209.69999694824, 1875.5, 12.39999961853, 0, 0, 0 ) 
  
function ToggleGate(thePlayer,command) 
moveObject (Gate1, 4000, 210.10000610352, 1875.5999755859, 8.8999996185303) 
end 
addCommandHandler ( "mgo", ToggleGate ) 

560x95_FFFFFF_FF9900_000000_000000.png

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