[Include] Run-Flat Tire System - 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)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Run-Flat Tire System (
/showthread.php?tid=158818)
Run-Flat Tire System -
StrickenKid - 11.07.2010
Run-Flat Tire System
Created by StrickenKid (Ethan1233 - <__Ethan__>)
About:
This system uses the new VehicleDamageStatus functions to check if a tire is popped, and will fix the tire if it is popped. This system can be used in about any server type and can be very useful.
Once a tire is popped and the player has a runflat for that tire, the tire will be fixed and the player won't have a runflat for that tire anymore. Use GivePlayerRunflats to give a player runflats on all four tires.
Functions:- ProcessRunflatTires( playerid, &tires )
- GivePlayerRunflats( playerid )
Install:- Place the include file in your server includes directory.
- Add the include preprocessor to your gamemode:
Код:
#include "../include/runflat_tires.inc"
- Add the following code to your OnVehicleDamageStatusUpdate callback:
Код:
public OnVehicleDamageStatusUpdate( vehicleid, playerid )
{
new
panels,
doors,
lights,
tires;
GetVehicleDamageStatus( vehicleid, panels, doors, lights, tires );
ProcessRunflatTires( playerid, tires );
UpdateVehicleDamageStatus( vehicleid, panels, doors, lights, tires );
return 1;
}
- Give the players run-flats on connect or with a command etc:
Код:
GivePlayerRunflats( playerid );
Download:
Run-Flat Tire System 1.0
Re: Run-Flat Tire System -
Venturas - 11.07.2010
very nice
Re: Run-Flat Tire System -
hab2ever - 11.07.2010
Very nice!
Re: Run-Flat Tire System -
Mr_ic3 - 11.07.2010
i like this cant believe these new functions

really happy with samp now
Re: Run-Flat Tire System -
StrickenKid - 11.07.2010
Yes, the new functions are very useful
Respuesta: Run-Flat Tire System -
Government - 04.07.2015
the link is not available, you could put it again?