Jump to content

Admin duty help.


Recommended Posts

Posted

So I've added this code for my friend's RP server. The thing is that only the GM had an image under their nametag. I've put the adm_on in the right folder. This is what I've got and I wanna find out if it works...

local isGM = getElementData(player,"account:gmduty") 
                                            if isGM  then 
                                                dxDrawImage(sx-offset+xpos,oldsy,picxsize,picysize,"images/hud/gm.png") 
                                                xpos = xpos + picxsize  
                                            end 
                                             
                                            local isAdmin = getElementData(player,"account:adminduty") 
                                            if isAdmin  then 
                                                dxDrawImage(sx-offset+xpos,oldsy,picxsize,picysize,"images/hud/adm_on.png") 
                                                xpos = xpos + picxsize  
                                            end 
                                             

Posted

Your asking people to make stuff for you. Your going to be ignored. Try it on your own, you were given examples how and shown how to move in the right direction. At least try to do it yourself.

Posted

The code's not working :(. I don't know what to do anymore even a nice guy gave me a start for a code, but I didnt knew how to continue it..Any explination why it's not working?

Posted

Is that 'friend' by any chance using a script/resource/package that has been leaked under the name; Valhalla Gaming? The way how the code is written looks like it ( rubbish and stupid ) and the image is the same.

Posted

Hmm, well I don't know if he's using this Valhalla script. He gave me only a file and told me that file is all I need. Once I got in the server and it was looking like paradise roleplay. I'm not 100% sure. And when you said"friend", think you meant that it's me. Well, it's not. I don't have the knowledges to do a db for a rp server..

Posted
The code's not working :(. I don't know what to do anymore even a nice guy gave me a start for a code, but I didnt knew how to continue it..Any explination why it's not working?

Whats the error.

Posted

Are you even sure the picture actually gets drawed? Put a outputChatBox in to be sure. If it does, someone else can help you, because I'm not having time to completely think about how to draw it under a player in the 3D world.

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