Jump to content

[ طلب فنكشنات .. ]


Recommended Posts

السلام عليكم

كيف الحال ان شاء الله بخير ...

الحين كيف اسوي لو اللاعب قتل زومبي

يجيب العدد الي قتله حق الزومبي ,

addEventHandler ( "onPedWasted", root,
 function ( _, attacker )
  if isElement ( attacker ) then
   if getElementType ( attacker ) == "player" then
    if getElementData ( source, "zombie" ) then
     setElementData ( attacker, "Zombie kills", ( getElementData ( attacker, "Zombie kills" ) or 0 )+1 )
    end
   end
  end
 end
)

Link to comment

addEventHandler ( "onPedWasted", root, 
function ( _, attacker ) 
    if ( attacker ) then 
        if getElementType ( attacker ) == "player" and getElementData ( source, "zombie" ) then 
            setElementData ( attacker, "Zombie kills", ( getElementData ( attacker, "Zombie kills" ) or 0 ) +1 ) 
            outputChatBox('* You Killed ( '..tonumber(getElementData ( attacker, "Zombie kills" ))..' ) of Zombies',attacker,0,0,0,true) 
        end 
    end 
end 
) 

:wink:

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