SA-MP Forums Archive
[FilterScript] Green Health Bar system (advanced) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Green Health Bar system (advanced) (/showthread.php?tid=490323)



Green Health Bar system (advanced) - Equuuuin0X - 26.01.2014

So, I've made a simple health bar's color, it changed to green with a decoration.

Introdution:
This is my 1st release of filterscript, I hope peoples dont go harm on me.

It's basically health bar modification of me, the color is green.

Download:
PWN/AMX:
https://www.mediafire.com/?xy8bhmmsc1cispi

Please leave comments, so I can learn more.

Instruction:
After you have downloaded the file, place the .pwn and .amx in your filterscript folder
go to server.cfg,and go to the ''filterscript'' line, add HealthBar next to it,

Код:
filterscript HealthBar
save the server.cfg and run your server again, then login to see the healthbar


Re: Green Health Bar system (advanced) - itsCody - 26.01.2014

Can we please see some screenshots?


Re: Green Health Bar system (advanced) - Equuuuin0X - 26.01.2014

I believe, I am in the weeks of business, so it should be a ''no'', just try it yourself.

added tutorial on how to use it.


Re: Green Health Bar system (advanced) - Cypress - 26.01.2014

pawn Код:
public OnFilterScriptInit()
{
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            OnPlayerConnect(i);
        }
    }
    return 1;
}
What is this?


Re: Green Health Bar system (advanced) - Equuuuin0X - 26.01.2014

to define if the player connect, the healthbar appeard.

the OnPlayerConnect(i) contains the public of OnPlayerConnect, which I filled with the healthbar stuffs.


Re: Green Health Bar system (advanced) - Cypress - 26.01.2014

Quote:
Originally Posted by Equuuuin0X
Посмотреть сообщение
to define if the player connect, the healthbar appeard.

the OnPlayerConnect(i) contains the public of OnPlayerConnect, which I filled with the healthbar stuffs.
But when player connects you already create the textdraw, you don't need this code.


Re: Green Health Bar system (advanced) - Equuuuin0X - 26.01.2014

well, I made it just to make sure the textdraw will be appeard, it doesnt really nessecary, but up to you if you'd like to use it or not.