#StrOnG_,) Posted February 13, 2016 Share Posted February 13, 2016 السلام عليكم كيف الحال ان شاء الله بخير ... الحين كيف اسوي لو اللاعب قتل زومبي يجيب العدد الي قتله حق الزومبي , 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
!#NssoR_) Posted February 13, 2016 Share Posted February 13, 2016 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 ) 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