[FilterScript] [FS] Auto vehicle flip
#1

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;
}
Reply


Messages In This Thread
[FS] Auto vehicle flip - by luby - 13.07.2009, 12:34
Re: [FS] Auto vehicle flip - by Correlli - 13.07.2009, 12:35
Re: [FS] Auto vehicle flip - by Marciii - 13.07.2009, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)