Jump to content

بخصوص سكور بورد


Recommended Posts

السلام عليكم

عندي بس استفسار بسيط

وهو كيف اسوي درو لصوره في سكور بورد في كلنت سايد

انا سويت كود بس ما يزبط للاسف

سيرفر سايد


  
exports.scoreboard:addScoreboardColumn('Home') 

  
  
function showHome1 () 
    local countryCode = exports["admin"]:getPlayerCountry(source) 
	    local flag = countryCode and "img/24/"..countryCode..".png" 
	 triggerClientEvent ( source, "onmmmmm", flag )
end 
addEventHandler("onPlayerJoin",getRootElement(),showHome1) 
addEvent ("onmmmmm123",true)
addEventHandler ("onmmmmm123",root,
function (sf)
    setElementData(source,"Home",sf) 

end
)

 

كلنت سايد

 

addEvent ("onmmmmm",true)
addEventHandler ("onmmmmm",root,
function (flag)
local sf = dxDrawImage(topX+theX, y+s(1)-2, 16, 16, flag,0,0,0,tocolor( 255,255,255,255 ), true)
triggerClientEvent ( source, "onmmmmm123", source,sf ) 
end)

 

اخواني بانتظار الرد

 

Link to comment

ارجو الرد

وهذا ككود لمود منشور ما يزبط برضو

بس يجي

كلام بس ما تجي صوره

   --[ Scoreboard flag   ]--
   --[ by 3aSH8_aLsHrq   ]--
   --[ [email protected] ]--
	  
	 
	 exports.scoreboard:addScoreboardColumn('Home')
     
			function showcountry()
			local flag = exports.admin:getPlayerCountry ( source )
					 if flag then
                     setElementData(source,"Home",":admin/client/images/flags/"..flag..".png")
                     else
                     flag = "N/A" 
                     end
             end
     addEventHandler("onPlayerJoin",getRootElement(),showcountry)

 

مو معقوله ولا رد

#Edit:

يا الله ارزقني بواحد يفهم يرد

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