WASSIm. Posted July 28, 2013 Posted July 28, 2013 hi guys i want ask how make image in scoreboard like this:
Bssol Posted July 28, 2013 Posted July 28, 2013 I think this will help you. https://community.multitheftauto.com/in ... ls&id=4019
WASSIm. Posted July 28, 2013 Author Posted July 28, 2013 i download it and all in Description but not working
iMr.3a[Z]eF Posted July 28, 2013 Posted July 28, 2013 Did you did what 3ashq alshrq told you in description?
WASSIm. Posted July 28, 2013 Author Posted July 28, 2013 Did you did what 3ashq alshrq told you in description? yes
xXMADEXx Posted July 28, 2013 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.)
WASSIm. Posted July 30, 2013 Author Posted July 30, 2013 No errors on debug? Bad argument @ 'setElmentDate' [Expexted argument at argument 3, got none]
PaiN^ Posted July 30, 2013 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 )
WASSIm. Posted July 30, 2013 Author 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
WASSIm. Posted July 30, 2013 Author Posted July 30, 2013 Means that "r" is returning false or nil. how fix ?
Castillo Posted July 30, 2013 Posted July 30, 2013 That error appears when you login? if so, then the problem is that 'source' is not a player element.
WASSIm. Posted July 31, 2013 Author 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 )
WASSIm. Posted July 31, 2013 Author Posted July 31, 2013 I don't understand what do you mean. show images ranks in scoreboard
WASSIm. Posted July 31, 2013 Author Posted July 31, 2013 Does it show or not? it show me just (ranks)
WASSIm. Posted July 31, 2013 Author 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
Castillo Posted July 31, 2013 Posted July 31, 2013 Well... post it? because that's for country, not ranks.
WASSIm. Posted July 31, 2013 Author 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
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