View difference between Paste ID: PmmEE9KM and A2hFRhF2
SHOW: | | - or go back to the newest paste.
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()
4+
    local car = ply:GetVehicle()\
5
		if(car:GetVelocity():Length() > 1) and (car.VC_Health <= 0) then 
6-
			Kun_SetCarHealth(ply.KunVehicle, 10, ply)
6+
7-
			Kun_SetGas(ply.KunVehicle, 1, ply)
7+
			KNotify(ply, "The vehicle is broken, fuck you.")
8
		end
9-
			KNotify(ply, "The vehicle is broken.")
9+
10
end)