Add timers if you leave vehicles, how?
#8

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
Reply


Messages In This Thread
Add timers if you leave vehicles, how? - by MastahServers - 03.06.2010, 14:09
Re: Add timers if you leave vehicles, how? - by DJDhan - 03.06.2010, 14:11
Re: Add timers if you leave vehicles, how? - by MastahServers - 03.06.2010, 14:14
Re: Add timers if you leave vehicles, how? - by WackoX - 03.06.2010, 14:15
Re: Add timers if you leave vehicles, how? - by shady91 - 03.06.2010, 14:16
Re: Add timers if you leave vehicles, how? - by Jefff - 03.06.2010, 14:17
Re: Add timers if you leave vehicles, how? - by WackoX - 03.06.2010, 14:19
Re: Add timers if you leave vehicles, how? - by MastahServers - 03.06.2010, 14:22
Re: Add timers if you leave vehicles, how? - by DJDhan - 03.06.2010, 14:24
Re: Add timers if you leave vehicles, how? - by shady91 - 03.06.2010, 14:25
Re: Add timers if you leave vehicles, how? - by MastahServers - 03.06.2010, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)