[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
#2

Well, this isn't really a filterscript.
Reply
#3

But a really nice snippet! Good Job!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)