Jump to content

ممكن اعرف مشكله هاذ المود


rabe3

Recommended Posts

السلام عليكم

هاذ المود عشان الطياره تضرب صواريخ بعد ثواني من اطلاق الصاروخ الاول بس مدري ليه مايعمل

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

ماكانت معرفه انها لاعب 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 

القسم خطأ :roll:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...