SA-MP Forums Archive
[FilterScript] [FS] Auto vehicle flip - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Auto vehicle flip (/showthread.php?tid=86321)



[FS] Auto vehicle flip - luby - 13.07.2009

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



Re: [FS] Auto vehicle flip - Correlli - 13.07.2009

Well, this isn't really a filterscript.


Re: [FS] Auto vehicle flip - Marciii - 13.07.2009

But a really nice snippet! Good Job!