07.05.2011, 16:19
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); }