Orange Posted December 27, 2011 Share Posted December 27, 2011 what just happened? I've got bad experience with him. A year ago his clan (?) has copied names of my clan (I don't know why did they do it). They were advertising their server where nobody played everyday. In this thread, he's going to copy one of unique features of my server (oh yeah, he's so pro that he can't do it himself). Orange u are crazy?in this days i play in Cod MW3 and i have this idea. i want add the images rank from mw3 in my server what copy sorry? . . . facepalm Oh yeah, I've got rank icons from mw2. Don't you remember when you were copying every idea? No Comment. Listen i have 20 years ago and i no want spend the time with the kids. 1.i never enter in u server 2.my name is hunterix ever 3.maybe the kinds banned in my server enter in u server . ..idk 4. i have 20 years (again) Who cares that you have 20 years ago (wtf is it)? I wish I had the logs when I joined the server and everyone was asking to ban me cuz "I am the faker". It happened 8 months ago. Let's stop this flame. I just want to say one thing: do not help him with editing scoreboard. If he's such a professional scripter, then he should know how to use dxDrawImage Link to comment
HunT Posted December 27, 2011 Author Share Posted December 27, 2011 Let's stop this flame. . . .yep is patetich . . .is ONLY THE GAME i'm "expert" in GUI element never use dx function . . .for this I ask help Link to comment
Jaysds1 Posted December 27, 2011 Share Posted December 27, 2011 ummm, you just told him to use dxDrawImage, plus Idk nothing or I don't want to get in to this, so, I'm just a helper: use dxDrawImage to put the image in the scoreboard: exports.scoreboard:addScoreboardColumn('Rank') function scoreLevel () local account = getPlayerAccount(source) local level = getAccountData(account, "rank") if (level ~= nil) then setAccountData(account,"rank",0) setElementData(source,"Rank",0) else setElementData(source,"Rank",level) end rank = getElementData(source,"Rank") if (rank == 0) then dxDrawImage() elseif (rank == 1) then --SO ON SO ON end end addEventHandler ( "onPlayerSpawn", getRootElement(), scoreLevel ) Link to comment
Castillo Posted December 27, 2011 Share Posted December 27, 2011 Every and each post in this topic is a total MESS. @Hunterix: You must edit the scoreboard resource, it only draw's TEXT's now, the script won't do some magic stuff to render a image with dxDrawText. Start learning by yourself. Link to comment
HunT Posted December 27, 2011 Author Share Posted December 27, 2011 Maybe i need edit the dxscoreboard_client.lua (maybe = sure) Why UAEpro give me the country flags many times ago and i look the custom file from dxscoreboad Now Test and later reply . . .Tnx Anyway. Link to comment
HunT Posted December 27, 2011 Author Share Posted December 27, 2011 ok i edit the scoreboard but debugscript 3 show this : "dxDrawImage can't load file" i add this : elseif column.name == "Rank" then column.width = 20 dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) Link to comment
Evil-Cod3r Posted December 28, 2011 Share Posted December 28, 2011 where is the images path ? Link to comment
TAPL Posted December 28, 2011 Share Posted December 28, 2011 where is the images path ? content Link to comment
HunT Posted December 28, 2011 Author Share Posted December 28, 2011 Solved. Tnx To Everyone (special txn to cadu12) Link to comment
HunT Posted December 28, 2011 Author Share Posted December 28, 2011 Now Work Fine. . . but i have the problem with space from names This : Who Know the setting in scoreboard for edit the space? Tnx Link to comment
CapY Posted December 28, 2011 Share Posted December 28, 2011 What are you talking about ? Everything is working fine, even the names and teams. Link to comment
HunT Posted December 28, 2011 Author Share Posted December 28, 2011 Yep but i need space from rank and rank Link to comment
CapY Posted December 28, 2011 Share Posted December 28, 2011 Then, resize the images like you did with Country flags. Link to comment
Evil-Cod3r Posted December 28, 2011 Share Posted December 28, 2011 By Using https://wiki.multitheftauto.com/wiki/GuiSetPosition and https://wiki.multitheftauto.com/wiki/GuiSetSize i think Link to comment
HunT Posted December 28, 2011 Author Share Posted December 28, 2011 Maybe i need edit this "seperationSpace = 80" or this in xml 1.2 Link to comment
CapY Posted December 28, 2011 Share Posted December 28, 2011 Look at how you did Country flags, do the same sizes with "Rank" images. Link to comment
JR10 Posted December 28, 2011 Share Posted December 28, 2011 I'm not sure if this is what you mean: dxGetFontHeight dxGetTextWidth Link to comment
xShocKz Posted December 28, 2011 Share Posted December 28, 2011 Look at how you did Country flags, do the same sizes with "Rank" images. but after you do not understand. Link to comment
CapY Posted December 28, 2011 Share Posted December 28, 2011 Look at how you did Country flags, do the same sizes with "Rank" images. but after you do not understand. Then, i would like to see YOU explaining. Link to comment
HunT Posted December 28, 2011 Author Share Posted December 28, 2011 Look at how you did Country flags, do the same sizes with "Rank" images. CapY yep i edit the size image 30x30 to 20x20 now test Tnx for Now Link to comment
HunT Posted December 28, 2011 Author Share Posted December 28, 2011 Nothing i need how the set the space from the names. Who help me please Link to comment
Evil-Cod3r Posted December 28, 2011 Share Posted December 28, 2011 i have found cloumn postion but i dont know how to make it see by your self https://wiki.multitheftauto.com/wiki/Scoreboard Link to comment
Orange Posted December 28, 2011 Share Posted December 28, 2011 Nothing i need how the set the space from the names.Who help me please Start a localhost server and try changing variables in dxscoreboard_client.lua Link to comment
Cadu12 Posted December 28, 2011 Share Posted December 28, 2011 Hunterix, post your code using dxDrawImage Link to comment
HunT Posted December 28, 2011 Author Share Posted December 28, 2011 Hunterix, post your code using dxDrawImage This : elseif column.name == "Rank" then column.width = 20 dxDrawImage( topX+theX, y+s(1), 30, 30, content, 0, 0, 0, cWhite, drawOverGUI ) y+s(1) maybe is up/down image 30x30 size image For images is ok. i need help for edit the space from the names dxscoreboard_client have 1196 string 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