11.07.2010, 05:10
(
Последний раз редактировалось StrickenKid; 17.10.2011 в 16:38.
)
Run-Flat Tire System
Created by StrickenKid (Ethan1233 - <__Ethan__>)
About:Created by StrickenKid (Ethan1233 - <__Ethan__>)
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 )
- 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 );
Run-Flat Tire System 1.0