Debug Monitor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Debug Monitor (
/showthread.php?tid=425993)
Debug Monitor -
iHaze. - 27.03.2013
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.
Re: Debug Monitor -
Riddick94 - 27.03.2013
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.
Re: Debug Monitor -
iHaze. - 27.03.2013
Quote:
Originally Posted by Riddick94
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.
|
I've tried it already actually, And got nothing.
Re: Debug Monitor -
iHaze. - 27.03.2013
*Bump, Anyone? :/
Re: Debug Monitor -
ReVo_ - 27.03.2013
https://sampforum.blast.hk/showthread.php?tid=117851
Re: Debug Monitor -
iHaze. - 27.03.2013
Quote:
Originally Posted by ReVo_
|
That's just a textdraw maker, I need a textdraw maker which can debug the health..
Re: Debug Monitor -
leong124 - 27.03.2013
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.
Re: Debug Monitor -
arjanforgames - 27.03.2013
Please do not make a samp dayz copy...
Re: Debug Monitor -
Riddick94 - 27.03.2013
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!
Re: Debug Monitor -
iHaze. - 28.03.2013
Quote:
Originally Posted by Riddick94
|
You're being so rude? Anyways thanks, I've tried to ****** the debug monitor but forgot the inventory system xD