Need help with destroying unwanted Veh
#4

Nope, it would be like this:
PHP код:
public OnPlayerExitVehicle (playeridvehicleid)
{
if(
vehicleid == GetPVarInt(playerid"AdminVeh")) // You need to include this or it will always destroy the vehicle when the player exits it, regardless of if it is a server vehicle or not
{
    
DestroyVehicle(vehicleid);
    
DeletePVar(playerid"AdminVeh");
    
SendClientMessage(playerid, -1"You have left your admin vehicle and it has been destroyed.");
}

Reply


Messages In This Thread
Need help with destroying unwanted Veh - by Goldilox - 19.04.2013, 13:20
Re: Need help with destroying unwanted Veh - by PaulDinam - 19.04.2013, 13:42
Re: Need help with destroying unwanted Veh - by Goldilox - 19.04.2013, 21:33
Re: Need help with destroying unwanted Veh - by bensmart469 - 19.04.2013, 21:57
Re: Need help with destroying unwanted Veh - by Goldilox - 20.04.2013, 00:42

Forum Jump:


Users browsing this thread: 2 Guest(s)