NodZen Posted October 9, 2012 Share Posted October 9, 2012 Hi! friends , look the problem is that no image in the scoreboard... exports.scoreboard:addScoreboardColumn('Rank') function ranks() local account = getPlayerAccount(source) local zombiekills = getAccountData(account,"play.kill") or 0 if (zombiekills <= 500) then setAccountData(account, "Rango", "1") setElementData(source , " Rank", "1.png") elseif (zombiekills >= 300000) then setAccountData(account, "Rango", "2") setElementData(source, "Rank", "2.png") end end and the scoreboard client elseif column.name == "rangos" then dxDrawImage( topX+theX, y+s(1), 30, 30, content, 0, 0, 0, cWhite, drawOverGUI ) some solution? Thanks Link to comment
HunT Posted October 9, 2012 Share Posted October 9, 2012 Where is the event for the function ranks () ? Anyway onPlayerSpawn is better for this. Add the event and report the debug if u have other problem. 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