Advertisement
Snorflake

its not hard

Jun 21st, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. car.VC_EngineOff = true
  7. KNotify(ply, "The vehicle is broken, fuck you.")
  8. end
  9. end
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement