Posts: 347
Threads: 41
Joined: Jun 2012
Reputation:
0
Hello, I've been wondering how can i make a Debug Monitor? Which telling me about Player's health & armor with a Textdraw, With the gun name and ammo amount of the gun (Like DayZ).
Also another question, How can i make a inventory system? that saves when i logout or pickup an item.
Thanks.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Did you ever tried a magic forum function, which is called "Search" ? If you didn't, then try it, trust me, You gonna receive THOUSANDS answers for your question.
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Textdraw maker helps you to create the outline of your debug monitor.
Textdraw is just a string/picture shown on the screen (which is actually just a string), so you can't select what you want and directly show it on the screen. If you need to eat something, it still has to be cooked/prepared, right?
What you have to do is to use GetPlayerHealth, GetPlayerArmour, etc. to get player's information, and then use "format" to change the float values into a string with labels like Health:100.0.
Finally Use TextDrawSetString and TextDrawShowForPlayer, and that's it. If you don't know how to use these functions, simply check the SA-MP wiki or ****** them.
Posts: 291
Threads: 76
Joined: Mar 2011
Reputation:
0
Please do not make a samp dayz copy...
Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by Xaerie
I've tried it already actually, And got nothing.
|
Inventory system (Save & Load support)
Debug player health, armour, weapon, ammo is too easy to search for it. Just create a textdraw and update it, when you need or every one second.
However, try that link.. unbelievable!
Whoa! How it's even possible, first match!