Jump to content

setTimer


Lloyd Logan

Recommended Posts

Posted

How would i put

setTimer ( paynspray, 2000, 1 ) 

into this code? So that when the player enters the marker, it takes a bit of time before it repair the vehicle?

function paynspray(hitElement) 
    fixVehicle(hitElement) 
 end 
addEventHandler("onMarkerHit", dutymarker, paynspray) 

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
function paynspray(hitElement) 
    setTimer ( fixVehicle, 2000, 1, hitElement ) 
end 
addEventHandler("onMarkerHit", dutymarker, paynspray) 

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 must use
getPedOccupiedVehicle 

Not need

be there should be a check for the hitElement type so that it doesnt try to fixVehicle the player outputing an error

Currently working as a paid scripter. Contact me for details.

Posted
function paynspray(hitElement) 
    setTimer ( fixVehicle, 2000, 1, hitElement ) 
end 
addEventHandler("onMarkerHit", dutymarker, paynspray) 

So where is the fixVehicle in this? :/

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
function paynspray(hitElement) 
    setTimer ( fixVehicle, 2000, 1, hitElement ) 
end 
addEventHandler("onMarkerHit", dutymarker, paynspray) 

So where is the fixVehicle in this? :/

setTimer ( fixVehicle, 2000, 1, hitElement )

  

Posted

Oh, sorry! Thanks alot!

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

You're welcome.

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.

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