Jump to content

آسستفسسار ! . .


Recommended Posts

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

كـل عام وانتم بخير :)

آنآ ابي اعرف كيف اخلي النافذهه حقتي مثل كذا شفافهه !

53ocge.png

وشـكرا لكم مقدما

جربت guiSetAlpha ماجت زي الشكل الي ابيه

Link to comment

+

بدال ما افتح موضوع جديد

آبي اعرف حل للكود ذا

function() 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 100) then 
  
    takePlayerMoney(source,100)  
     
    setElementHealth ( source, getElementHealth(source) + 10 ) 
     
     
     local name = getPlayerName(source) 
      
     end  
  
end  
  
)  

ابيه اذا جيت يشتري الـ Health ودمه 100 ماياخذ من فلوسسه

Link to comment

-- # Server Side ! 
addEvent ( "onBuyHealth", true ) 
addEventHandler ( "onBuyHealth", root, 
       function ( ) 
              if ( getPlayerMoney ( client ) >= 100 ) then 
                     if ( getElementHealth ( client ) < 100 ) then 
                            takePlayerMoney ( client, 100 ) 
                            setElementHealth ( client, 100 ) 
                            outputChatBox ( "* You Have Been Bought Health By 100$ !", client, 255, 255, 0, true ) 
                     else 
                            outputChatBox ( "* You Can Buy Health if your health less of 100 !", client, 255, 0, 0, true ) 
                     end 
              else 
                     outputChatBox ( "* You Don't Have 100$ !", client, 255, 0, 0, true ) 
              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...