08.09.2013, 14:59
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
My Teleport command
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);
}
Код:
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;
}

