rabe3 Posted August 24, 2013 Share Posted August 24, 2013 السلام عليكم هاذ المود عشان الطياره تضرب صواريخ بعد ثواني من اطلاق الصاروخ الاول بس مدري ليه مايعمل function hunterTimer() if getElementModel(source) == 425 then bindKey("vehicle_fire", "down", hunterTimerMain) end end addEventHandler("onClientVehicleEnter", getRootElement(), hunterTimer) function hunterTimerMain(key, state) if getElementData(player, "timer.rockets") == "normal" then toggleControl ("vehicle_fire", false) setElementData(player, "timer.rockets", "cooldown") setTimer(restoreRockets, 3000, 1) end end function restoreRockets() toggleControl ("vehicle_fire", true) setElementData(player, "timer.rockets", "normal") end Link to comment
iMr.Dawix~# Posted August 24, 2013 Share Posted August 24, 2013 ماكانت معرفه انها لاعب player الخطأ هو أن function hunterTimer() if getElementModel(source) == 425 then bindKey("vehicle_fire", "down", hunterTimerMain) end end addEventHandler("onClientVehicleEnter",root, hunterTimer) function hunterTimerMain(key, state) if getElementData(localPlayer, "timer.rockets") == "normal" then toggleControl ("vehicle_fire", false) setElementData(localPlayer, "timer.rockets", "cooldown") setTimer(restoreRockets, 3000, 1) end end function restoreRockets() toggleControl ("vehicle_fire", true) setElementData(localPlayer, "timer.rockets", "normal") end القسم خطأ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now