Jump to content

مساعدة في كود بسيط


Recommended Posts

السلام عليكم شباب

الحين انا مسوي مود يعطي اختفاء

بس لما الشخص يمود يضل معة الاختفاء

انا ابي لما يموت يظهر ثاني

وشكرااااااااااااااا

addEvent ( "buyInvisible", true) 
addEventHandler ( "buyInvisible", root, function (    ) 
  local accName = getAccountName ( getPlayerAccount ( source ) )
   if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then 
    local check = getElementAlpha ( source ) == 255 
            if ( getPlayerMoney ( source ) >= 0 ) then
        takePlayerMoney ( source, check and 0 or 0 )
        outputChatBox ( check and "Now You Hide" or "Now You show", source, 0, 255, 0, true ) 
            setElementAlpha ( source, check and 0 or 255 ) 
        setPlayerNametagShowing ( source, not check ) 
end
    end
end ) 

 

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