RockFire_

OnVehicleDamageUpdate

Sep 22nd, 2011
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.49 KB | None | 0 0
  1. new
  2.     Float:vehicleHealth[MAX_VEHICLES];
  3.  
  4. public OnVehicleSpawn(vehicleid)
  5.     return GetVehicleHealth(vehicleid, vehicleHealth[vehicleid]);
  6.  
  7. public OnVehicleDamageStatusUpdate(vehicleid, playerid)
  8. {
  9.     static
  10.         Float:health,
  11.         Float:damage;
  12.  
  13.     GetVehicleHealth(vehicleid, health);
  14.  
  15.     damage = vehicleHealth[vehicleid] - health;
  16.  
  17.     return CallRemoteFunction("OnVehicleDamageUpdate", "ddf", vehicleid, playerid, damage);
  18. }
  19.  
  20. forward OnVehicleDamageUpdate(vehicleid, playerid, Float:damage);
Advertisement
Add Comment
Please, Sign In to add comment