08.01.2016, 04:07
Just put this:
inside OnPlayerDeath callback.
PHP код:
if (FlightStarted[playerid] == 1)
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 592) DestroyVehicle(GetPlayerVehicleID(playerid));
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
FlightStarted[playerid] = 0;
SetPlayerPos(playerid, 1891.9252, -2328.7129, 13.5469);
SendClientMessage(playerid, COLOR_YELLOW, "Flight aborted.");
return 1;
}
else SendClientMessage(playerid, COLOR_GREY, " You didn't start a flight yet.");
return 1;