Quote:
Originally Posted by WackoX
Quote:
Originally Posted by Shady91
wrong, I would do something like
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid) {
SetTimerEx("delcar", 5000, 0, "i", vehicleid) return 1; }
forward delcar(vehicleid); public delcar(vehicleid) { DestroyVehicle(vehicleid); //or SetVehicleToRespawn(vehicleid); return 1; }
|
You are wrong;
* He said the car has te be destroyed, you destroy and respawn them.
* You don't have to destroy a car that would be respawned, unuseless.
* You have no idea of identation.
EDIT: Still i stay with my point of view.
---
Quote:
Originally Posted by Jefff
exit
Код:
SetTimerEx("DestroyVeh",5000,0,"dd",playerid,vehicleid);
Код:
forward DestroyVeh(p,v);
public DestroyVeh(p,v)
{
if(!IsPlayerInVehicle(p,v)){
DestroyVehicle(v);
}
return 1;
}
|
WTF, if he get's out of a vehicle how the hell would he be in it.
|
! means the opposite. In this case, if the player is out of a vehicle, then the vehicle gets destroyed if he leaves it