Jump to content

[Solved] Rank Numbers To Images


HunT

Recommended Posts

Posted
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

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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

Posted

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 ) 

Posted

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.

Posted

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.

Posted

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 ) 

Posted

Now Work Fine. . . but i have the problem with space from names :|

This :

276.png

Who Know the setting in scoreboard for edit the space? Tnx

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

Posted
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 :mrgreen:

Posted
Nothing :cry: 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

Posted
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 :evil:

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