Why doesn't this code work?
#2

if your going to only do this when a player exits a vehicle use public OnPlayerExitVehicle(playerid, vehicleid)
like:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    DestroyVehicle(vehicleid);
    return 1;
}
However the vehicle wont respawn so you should use SetVehicleToRespawn(1);
so this should respawn the vehicle
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetVehicleToRespawn(1);
    return 1;
}

Reply


Messages In This Thread
Why doesn't this code work? - by ThePS3Guy - 09.08.2009, 05:06
Re: Why doesn't this code work? - by ruarai - 09.08.2009, 05:39
Re: Why doesn't this code work? - by ThePS3Guy - 09.08.2009, 06:06
Re: Why doesn't this code work? - by ruarai - 09.08.2009, 06:08
Re: Why doesn't this code work? - by ThePS3Guy - 09.08.2009, 06:17
Re: Why doesn't this code work? - by ruarai - 09.08.2009, 06:26
Re: Why doesn't this code work? - by ThePS3Guy - 09.08.2009, 06:32

Forum Jump:


Users browsing this thread: 1 Guest(s)