2013martin1212 Posted August 23, 2015 Share Posted August 23, 2015 Hello all i just have a question about how to make a hud like this ? A képet a Képfeltöltés.hu tárolja. http://www.kepfeltoltes.hu Link to comment
KariiiM Posted August 23, 2015 Share Posted August 23, 2015 dxDrawRectangle dxDrawText getPlayerMoney Link to comment
2013martin1212 Posted August 23, 2015 Author Share Posted August 23, 2015 I get that way, but i dont no how to make a point system like on the image there has money and Z-Pont Link to comment
KariiiM Posted August 23, 2015 Share Posted August 23, 2015 I don't know what this Z Point about, but you can do something like if you kill a Zombie / Player get +1 rep ,then save it in the player account or xml ,also you can use Mysql / sqlite functions in this situation Link to comment
2013martin1212 Posted August 23, 2015 Author Share Posted August 23, 2015 KariiiM are you understand what i want ? Link to comment
KariiiM Posted August 23, 2015 Share Posted August 23, 2015 KariiiM are you understand what i want ? You want to do a HUD like on this video? that's what you said in your first post Link to comment
2013martin1212 Posted August 23, 2015 Author Share Posted August 23, 2015 Yes i want to make a hud and a script which working similar like the money, Link to comment
xeon17 Posted August 23, 2015 Share Posted August 23, 2015 Yes i want to make a hud and a script which working similar like the money, He gave you the functions which you need, it's on you to create it now. Also there are many huds on the community, you can download and check them how they work. Link to comment
2013martin1212 Posted August 23, 2015 Author Share Posted August 23, 2015 I try it that, but the most community resource are in luac version Link to comment
2013martin1212 Posted August 23, 2015 Author Share Posted August 23, 2015 Its ok i can make a hud with this, but i still dont no how to make the another points system Like i want to make a Money hud which is done, but i need the another system wich is the other way i think i need to do setElementData but i dont no Link to comment
xeon17 Posted August 23, 2015 Share Posted August 23, 2015 Its ok i can make a hud with this, but i still dont no how to make the another points systemLike i want to make a Money hud which is done, but i need the another system wich is the other way i think i need to do setElementData but i dont no Can you explain how this points system work? how exactly players get the points and so on? Link to comment
2013martin1212 Posted August 23, 2015 Author Share Posted August 23, 2015 The player gets money when the admin gives them its like a donetor can use only and they can buy extra items on the server with points , and with the money cant Link to comment
xeon17 Posted August 23, 2015 Share Posted August 23, 2015 The player gets money when the admin gives them its like a donetor can use only and they can buy extra items on the server with points , and with the money cant You could give the ponts with setElementData and save them when player quit with setAccountData. Link to comment
2013martin1212 Posted August 23, 2015 Author Share Posted August 23, 2015 Can u please give me the example how i am not that good in lua Link to comment
xeon17 Posted August 23, 2015 Share Posted August 23, 2015 addCommandHandler('setmypoints', -- /setmypoints 255 function (player,command,ponts) if not (points) then -- If the points argument is missing then cancel the function. return end setElementData(player,'points',tonumber(points)) -- The player get the amout of points which he wrote outputChatBox('Ponts:'..points,player,255,0,0) end) 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