13.07.2009, 12:34
This short and simply script will flip you vehicle when it will still on roof.
Код:
#include <a_samp> new Float:LastLife[200]; public OnPlayerUpdate(playerid){ if(!IsPlayerInAnyVehicle(playerid))return 1; new Float:LifeNow; GetVehicleHealth(GetPlayerVehicleID(playerid), LifeNow); if(LifeNow == 249.0 && LastLife[playerid] > 250){ new Float:A; GetVehicleZAngle(GetPlayerVehicleID(playerid), A); SetVehicleZAngle(GetPlayerVehicleID(playerid), A); SetVehicleHealth(GetPlayerVehicleID(playerid), LastLife[playerid]); } LastLife[playerid] = LifeNow; return 1; }