18.08.2010, 02:11
you have no function call to update the damage to the vehicles tires.
strongly suggest checking to ensure a player is in a vehicle before function call...
On an After Thought, you dont even have anything detecting if the player is in a vehicle, or if the vehicle is touching the object.. Someone released a SpikeStrip system a while back.. heres the Source: http://pastebin.com/W5d6WH1F
That options uses Pickups, theres another option for a very small area check ... but i would suggest pickups as you don't need a timer or ticker.
Код:
stock PopPlayerTires(playerid) { new vehicleid = GetPlayerVehicleID(playerid); new panels, doors, lights, tires; GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires); UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15); }
On an After Thought, you dont even have anything detecting if the player is in a vehicle, or if the vehicle is touching the object.. Someone released a SpikeStrip system a while back.. heres the Source: http://pastebin.com/W5d6WH1F
That options uses Pickups, theres another option for a very small area check ... but i would suggest pickups as you don't need a timer or ticker.