Jump to content

[Solved] Rank Numbers To Images


HunT

Recommended Posts

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
  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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

Link to comment

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