02.10.2012, 18:04
pawn Код:
new myTimer[MAX_VEHICLES];
public OnPlayerExitVehicle(playerid, vehicleid)
{
myTimer[vehicleid] = SetTimerEx("ResetCar", 60000, 0,"d", vehicleid);
}
forward ResetCar(vehicleid);
public ResetCar(vehicleid)
{
DestroyVehicle(vehicleid);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
KillTimer(myTimer[vehicleid]);
return 1;
}