WASSIm. Posted July 28, 2013 Share Posted July 28, 2013 hi guys i want ask how make image in scoreboard like this: Link to comment
Bssol Posted July 28, 2013 Share Posted July 28, 2013 I think this will help you. https://community.multitheftauto.com/in ... ls&id=4019 Link to comment
WASSIm. Posted July 28, 2013 Author Share Posted July 28, 2013 i download it and all in Description but not working Link to comment
iMr.3a[Z]eF Posted July 28, 2013 Share Posted July 28, 2013 Did you did what 3ashq alshrq told you in description? Link to comment
WASSIm. Posted July 28, 2013 Author Share Posted July 28, 2013 Did you did what 3ashq alshrq told you in description? yes Link to comment
xXMADEXx Posted July 28, 2013 Share Posted July 28, 2013 Did you change the admin resource also? As it gives you a link for a new admin (or something idk, didn't download it.) Link to comment
WASSIm. Posted July 29, 2013 Author Share Posted July 29, 2013 i try all in description but nothing Link to comment
WASSIm. Posted July 30, 2013 Author Share Posted July 30, 2013 No errors on debug? Bad argument @ 'setElmentDate' [Expexted argument at argument 3, got none] Link to comment
PaiN^ Posted July 30, 2013 Share Posted July 30, 2013 Replace the script with this : --[ Scoreboard flag ]-- --[ by 3aSH8_aLsHrq ]-- --[ [email protected] ]-- exports.scoreboard:addScoreboardColumn( "Home" ) function showcountry( source ) local flag = exports.admin:getPlayerCountry( source ) or "N/A" if not flag or flag == "N/A" then setElementData( source, "Home", "N/A" ) else setElementData( source, "Home", ":admin/client/images/flags/".. flag .. ".png" ) end end addEventHandler( "onResourceStart", resourceRoot, function( ) for k,v in ipairs( getElementsByType( "player" ) ) do showcountry( v ) end end ) addEventHandler( "onPlayerJoin", root, showcountry ) Link to comment
WASSIm. Posted July 30, 2013 Author Share Posted July 30, 2013 (edited) thx i need this is show me N/A and level working exports["scoreboard"]:scoreboardAddColumn ( "Ranks", root, 20, "R", 1) function showranks( source ) local r = getElementData(source,"level") if not r then setElementData( source, "Ranks", "N/A" ) else setElementData(source,"Ranks","ranks/lvl_"..r..".png") end end addEventHandler( "onResourceStart", resourceRoot, function( ) for k,v in ipairs( getElementsByType( "player" ) ) do showranks( v ) end end ) addEventHandler( "onPlayerJoin", root, showranks ) Edited July 30, 2013 by Guest Link to comment
Castillo Posted July 30, 2013 Share Posted July 30, 2013 Means that "r" is returning false or nil. Link to comment
WASSIm. Posted July 30, 2013 Author Share Posted July 30, 2013 Means that "r" is returning false or nil. how fix ? Link to comment
Castillo Posted July 30, 2013 Share Posted July 30, 2013 That error appears when you login? if so, then the problem is that 'source' is not a player element. Link to comment
WASSIm. Posted July 31, 2013 Author Share Posted July 31, 2013 That error appears when you login? if so, then the problem is that 'source' is not a player element. i change some think but is show me (ranks) exports["scoreboard"]:scoreboardAddColumn ( "Ranks", root, 20, "R", 1) function showranks( ) for index, player in ipairs ( getElementsByType "player" ) do local r = getElementData(player,"level") if not r then setElementData( player, "Ranks", r ) else setElementData( player,"Ranks","ranks/lvl_"..r..".png") end end end setTimer ( showranks, 500, 0 ) Link to comment
Castillo Posted July 31, 2013 Share Posted July 31, 2013 I don't understand what do you mean. Link to comment
WASSIm. Posted July 31, 2013 Author Share Posted July 31, 2013 I don't understand what do you mean. show images ranks in scoreboard Link to comment
WASSIm. Posted July 31, 2013 Author Share Posted July 31, 2013 Does it show or not? it show me just (ranks) Link to comment
Castillo Posted July 31, 2013 Share Posted July 31, 2013 Post the edited scoreboard code. Link to comment
WASSIm. Posted July 31, 2013 Author Share Posted July 31, 2013 Post the edited scoreboard code. i get link download scoreboard on this: https://community.multitheftauto.com/index.php?p= ... ls&id=4019 Link to comment
Castillo Posted July 31, 2013 Share Posted July 31, 2013 Well... post it? because that's for country, not ranks. Link to comment
WASSIm. Posted July 31, 2013 Author Share Posted July 31, 2013 Well... post it? because that's for country, not ranks. i dont download that resource . i download scoreboard in link description scoreboard :\mods\deathmatch\resources\[gameplay] (And replaced) http://www.mediafire.com/?ca68kne6aq1dhkb 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