Add timers if you leave vehicles, how?
#10

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.
Err are you blind? can you not see //or

depending on what he wants to do so you wrong for not reading what I wrote

and when you post code in [[pawn]] format it mess's up the indentation also why would I care about fixing indentation on a post on a forum?? he has a brain he could do that him self.

also you spelt indentation wrong.
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)