Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Vehicle destroy

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

Code:

if( oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT && IsValidVehicle(veho[playerid]))
    {
        timer[ playerid ] = SetTimerEx( "destroytimer", 120000, false, "i", playerid );
    }

Code:

forward destroytimer( playerid );
public destroytimer( playerid )
{
    DestroyVehicle(veho[playerid]);
    return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>