Guest User

ad

a guest
Jun 21st, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. hook.Add( "Think", "VehicleBroken", function()
  2. for k,ply in ipairs(player.GetAll()) do
  3. if(ply:GetVehicle() != nil) then
  4. local car = ply:GetVehicle()
  5. if(car:GetVelocity():Length() > 1) and (car.VC_Health <= 0) then
  6. Kun_SetCarHealth(ply.KunVehicle, 10, ply)
  7. Kun_SetGas(ply.KunVehicle, 1, ply)
  8. car.VC_EngineOff = true
  9. KNotify(ply, "The vehicle is broken.")
  10. end
  11. end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment