Vehicle destroy
#1

Hi. I want to do, that when player leave car, it will destroy. Here I have code. It works, but vehicle wont destroy, but respawning...

Код:
 if( oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT && IsValidVehicle(veho[playerid]))
    {
        timer[ playerid ] = SetTimerEx( "destroytimer", 120000, false, "i", playerid );
    }
Код:
forward destroytimer( playerid );
public destroytimer( playerid )
{
    DestroyVehicle(veho[playerid]);
    return 1;
}
Reply


Messages In This Thread
Vehicle destroy - by ,TomY' - 26.07.2017, 07:36
Re: Vehicle destroy - by Xtra - 26.07.2017, 07:58
Re: Vehicle destroy - by ,TomY' - 26.07.2017, 08:24
Re: Vehicle destroy - by ,TomY' - 26.07.2017, 08:42
Re: Vehicle destroy - by Xtra - 26.07.2017, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)