Timer help!
#1

Hey guys! I found this piece of code on the forums

Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        new currentveh;
        currentveh = GetPlayerVehicleID(playerid);
        DestroyVehicle(currentveh);
        SetTimerEx("cardestroyedhide", 5000, 0, "i", playerid);
    }
    return 1;
}
This makes it so that when a player exits his car, the car disappears. That's nice, but I want to disappear after a minute, how do I implement that?

Thanks in advance!
-Nick
Reply


Messages In This Thread
Timer help! - by nickbouwhuis - 02.10.2012, 16:36
Re: Timer help! - by gtakillerIV - 02.10.2012, 16:38
Re: Timer help! - by nickbouwhuis - 02.10.2012, 17:06
Re: Timer help! - by Djole1337 - 02.10.2012, 17:11
Re: Timer help! - by nickbouwhuis - 02.10.2012, 17:34
Re: Timer help! - by gtakillerIV - 02.10.2012, 17:46
Re: Timer help! - by RedFusion - 02.10.2012, 17:50
Re: Timer help! - by Djole1337 - 02.10.2012, 17:52
Re: Timer help! - by RedFusion - 02.10.2012, 18:04
Re: Timer help! - by nickbouwhuis - 03.10.2012, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)