Jump to content

?


z24d

Recommended Posts

Posted

السلام عليكم

الحين كذآ يخلي أي بيد بالسيرفر مايموت صحح ؟

    function NDMG() 
    for i, ped in ipairs(getElementsByType("ped")) do 
    cancelEvent()  
    end 
end 
addEventHandler ( "onClientPedDamage", getRootElement(), NDMG ) 
  
  
  

Posted

أي..

Cancel effect

If this event is canceled, then any damaging effects to the ped will cease.

لاكن طريقتك غلط.. انت مسوي روت لكل البيدات وبعدين حاط لوب على كل البيدات ثاني

فـ تصير

  
function NDMG() 
    cancelEvent() 
end 
addEventHandler ( "onClientPedDamage", getRootElement(), NDMG )  
  

بالتوفيق

Posted

تقدر تسويه مختصر اكثر بسطر واحد:

addEventHandler("onClientPedDamage", root, cancelEvent) 

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...