Jump to content

طلب ^_^


Recommended Posts

Posted

السلام عليكم ورحمة الله وبركاته

طلبي

1- اذا اللاعب ضربوة ووصل دمة 20 يسوي حركة

2- ابغى اللاعب ماينقص دمة عن 20% لو يرموة باي سلاح

3- بعد مايسوي الحركة يجي له وقت 5 دقايق ان مازاد دمة يموت

اكيد فهمتوا اش ابغى اسوي :D

:mrgreen: بانتظار ردودكم ..

Posted

مراح يكنسل الافنت ماتقرون الويكي

صفحة الويكي حقت onPlayerDamage

مافي كنسل افنت

https://wiki.multitheftauto.com/wiki/On ... ayerDamage

or

https://wiki.multitheftauto.com/wiki/OnClientPedDamage

بس كلنت

اقتباس من الويكي

Cancel effect

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

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted

احداث الدمج للكلنت والسيرفر كلها تتكنسل

لكن انت فهمت الاقتباس من الويكي فهمته غلط

Posted

جرب حدث الكلنت مو السيرفر شوف ردي فوق تلقا مثال بالرابط

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted
addEventHandler( "onPlayerDamage", root, function(   ) 
  if ( getElementHealth( source ) < 20 ) then 
             setPedAnimation ( source, "BEACH", "bather") 
cancelEvent()  
     end 
end ) 

الحين سويت حاجة وحده اذا وصل 20 دمة يسوي

الحركة باقي ابغاه اذا وصل 20 ماينزل عن 20 مايموت

واذا زاد دمة فوق 20 يوقف الحركة

Posted

Client side:

addEventHandler ("onClientPlayerDamage", root, function () 
if getElementHealth (localPlayer) <= 20 then 
addEventHandler ("onClientPlayerDamage", getLocalPlayer (), cancelEvent) 
setElementHealth (localPlayer, 20) 
setPedAnimation (localPlayer, "BEACH", "bather") 
else 
removeEventHandler ("onClientPlayerDamage", getLocalPlayer (), cancelEvent) 
end 
end) 
Posted

جججرب .. :

addEventHandler( "onClientPlayerDamage", localPlayer, function( attacker ) 
  if ( attacker and attacker ~= source ) then 
    if ( getElementHealth( source ) <= 20 ) then 
         cancelEvent(    ) 
         setPedAnimation ( source, "BEACH", "bather" ) 
         setTimer ( function(  )  
           if ( isElement( source ) ) then 
              if ( getElementHealth( source ) == 20 ) then 
                     setElementHealth( source, 0 ) 
             else 
                     setPedAnimation( source, false ) 
                     end 
                 end 
             end, 300000, 1 ) 
         end 
     end 
end )  

To Contact Me at Skype : [email protected]

Posted
Client side:

addEventHandler ("onClientPlayerDamage", root, function () 
if getElementHealth (localPlayer) <= 20 then 
addEventHandler ("onClientPlayerDamage", getLocalPlayer (), cancelEvent) 
setElementHealth (localPlayer, 20) 
setPedAnimation (localPlayer, "BEACH", "bather") 
else 
removeEventHandler ("onClientPlayerDamage", getLocalPlayer (), cancelEvent) 
end 
end) 

الحدث OnClientPlayerDamage

والحدث كلنت

وانت حاط بعد الحدث كاتب root

المفروض localPlayer

صح ولا انا غلطاان.؟

Old Name = abodeoom

Posted
Client side:

addEventHandler ("onClientPlayerDamage", root, function () 
if getElementHealth (localPlayer) <= 20 then 
addEventHandler ("onClientPlayerDamage", getLocalPlayer (), cancelEvent) 
setElementHealth (localPlayer, 20) 
setPedAnimation (localPlayer, "BEACH", "bather") 
else 
removeEventHandler ("onClientPlayerDamage", getLocalPlayer (), cancelEvent) 
end 
end) 

الحدث OnClientPlayerDamage

والحدث كلنت

وانت حاط بعد الحدث كاتب root

المفروض localPlayer

صح ولا انا غلطاان.؟

صح كلامك

+

ما يتكنسل onPlayerDamage للي ردو فوق حدث

onClientPlayerDamage بس

My E-mails:

" Manners Maketh Man "

" الأخلاق تصنع الرجل "

░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM !

▂▄▅█████████▅▄▃▂

███████████████████].

◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

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