15.06.2011, 09:42
Hello!
I need some help to make a car destroy with settimter.
I make a car destroy with time but it not work it wher a player stay 15 sec in a car in auto exit player from vehicles:
Thanks!
I need some help to make a car destroy with settimter.
I make a car destroy with time but it not work it wher a player stay 15 sec in a car in auto exit player from vehicles:
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT) { new vid = GetPlayerVehicleID(playerid); SetTimerEx("destroy", 15000, false, "d", vid); } return 1; } forward destroy(vid); public destroy(vid) { DestroyVehicle(vid); return 1; }