02.06.2012, 01:12
How do I make a destroy car cmd but that only destroys cars that were spawned by hackers / admins
not server sided cars.
not server sided cars.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID(playerid);
SetTimerEx("destroy", 15000, false, "d", vid);
}
return 1;
}
forward destroy(vid);
public destroy(vid)
{
DestroyVehicle(vid);
return 1;
}