Destroy vehicle timer
#3

Use SetTimerEx.
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER) SetTimerEx("TimerName", 120000, false, "i", vehicleid);
    // Set a timer of 120.000 milliseconds (2 minutes)
    // "false" to be non-repeating
    // Passes on the vehicleid as an integer
    return 1;
}
pawn Код:
forward TimerName(vehicleid);
public TimerName(vehicleid) DestroyVehicle(vehicleid);
// When the timer is done, it executes the function in the public, which in this case is DestroyVehicle
Reply


Messages In This Thread
Destroy vehicle timer - by MegaTheVova - 12.03.2015, 12:03
Respuesta: Destroy vehicle timer - by JuanStone - 12.03.2015, 12:16
Re: Destroy vehicle timer - by CalvinC - 12.03.2015, 12:19
Re: Destroy vehicle timer - by MegaTheVova - 12.03.2015, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)