Destroy car on player exit
#1

Hello all. I made a destroy car when a player exit`s his vehicle. It works but, when a passenger exits, the car also gets destroyed. So you can destroy each other vehicle, and i dont want that. How to do it, that only if the driver exits, the vehicle gets destroyed?

Код:
	public OnPlayerExitVehicle(playerid, vehicleid)
			{
			new currentveh;
          	currentveh = GetPlayerVehicleID(playerid);
          	DestroyVehicle(currentveh);
          	TextDrawShowForPlayer(playerid,Cardestroyed);
          	SetTimerEx("cardestroyedhide", 5000, 0, "i", playerid);
			}
Reply


Messages In This Thread
Destroy car on player exit - by gamerhead - 07.05.2011, 16:19
Re: Destroy car on player exit - by austin070 - 07.05.2011, 16:23
Re: Destroy car on player exit - by BizzyD - 07.05.2011, 16:23
Re: Destroy car on player exit - by marrcko - 07.05.2011, 16:26
Re: Destroy car on player exit - by Babul - 07.05.2011, 16:27
Re: Destroy car on player exit - by gamerhead - 07.05.2011, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)