09.08.2009, 06:38
I know how to set a timer, for example I have a 15 second timer for my nos to reset all the time, what I want to know is how to set a delay. A timer wouldn't work, because lets say I set a 1 second timer, the effect can take place anywhere from 0 to 1 seconds.
If you need me to be more specific, I want my Cars FS to set vehicles back to the spawn point , but only after say, 5 seconds after a player exits the vehicle. Here's what I have so far.
#include <a_samp>
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetVehicleToRespawn(vehicleid);
return 1;
}
If you need me to be more specific, I want my Cars FS to set vehicles back to the spawn point , but only after say, 5 seconds after a player exits the vehicle. Here's what I have so far.
#include <a_samp>
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetVehicleToRespawn(vehicleid);
return 1;
}