How do I make a vehicle respawn when not in it
#1

I've tried to do it on OnPlayerExitVehicle(playerid, vehicleid)

But I also have teleport commands too, and when i use the teleport command it doesn't respawn the vehicle

My respawn thing
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
	SetTimerEx("OnPlayerVehicleRespawn", 3000, false, "i", vehicleid);
	return 1;
}

forward OnPlayerVehicleRespawn(vehicleid);
public OnPlayerVehicleRespawn(vehicleid)
{
    SetVehicleToRespawn(vehicleid);
}
My Teleport command
Код:
        COMMAND:lva(playerid, params[])
	{
	    SetPlayerVirtualWorld(playerid, 0);
	    SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to: Las Venturas Airport");
	    SetPlayerPos(playerid, 1363.5719,1657.6664,10.8203);
	    return 1;
	}
Reply


Messages In This Thread
How do I make a vehicle respawn when not in it - by ExtendedCarbon - 08.09.2013, 14:59
Re: How do I make a vehicle respawn when not in it - by Konstantinos - 08.09.2013, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)