.........HBox *[color change][Include also]*......... -
Hanuman - 12.04.2014
HBox
Introduction:
This is the box which is mainly use for showing the server news to all players. I am releasing Fliterscript and Include of this script. Hope u like it.
About Box:
Box shows maximum 8 lines
Transparent Box Color(Black)
6 color for Box that contain "Server news" Text.
How to use?
For Filterscript:
Download the .rar file from the link.
Put Hbox.pwn and Hbox.amx in the filterscript folder.
Open the server.cfg file
Add Hbox at the side of "filterscript" text.
Start your server.
For Include:
Download the .rar file from the link.
Put Hbox.inc in pawno/include
Open your script and add this at the top of your script
Now follow the steps which is given below:
pawn Код:
public OnGameModeInit()
{
HTextDrawInit();
return 1;
}
pawn Код:
public OnFilterScriptExit()
{
HTextDrawExit();
return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
HTextDrawConnect(playerid);
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
HTextDrawDisconnect(playerid);
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
Bcolor(dialogid, listitem);
return 1;
}
How To Send Message in Box?
Use "HBoxMessage(color, message[]);".
Example:
pawn Код:
new str[128],Name[MAX_PLAYERS];
GetPlayerName(playerid,Name,sizeof(Name));
format(str, sizeof(str),"%s has ~g~joined~w~ the server", Name);
HBoxMessage(playerid, str);
How to change the color of the box?
Use /boxcolor. You need to be Rcon admin to use this command.
Images:
Default Box Color

All colors

Purple

Green
Download link:
http://www.solidfiles.com/d/45648d726a/HBox
Hope that u understand everything! Any problem then ask on this thread.
Re: .........HBox *[color change][Include also]*......... -
ChandraLouis - 12.04.2014
Looks good is it an edit ?
Re: .........HBox *[color change][Include also]*......... -
GamingPro - 12.04.2014
Nice job
Re: .........HBox *[color change][Include also]*......... -
Inn0cent - 12.04.2014
Nice FS :P
Re: .........HBox *[color change][Include also]*......... -
Hanuman - 13.04.2014
Quote:
Originally Posted by ChandraLouis
Looks good is it an edit ?
|
what? NO.
Anyway thanks for ur feedbacks
Re: .........HBox *[color change][Include also]*......... -
ChandraLouis - 13.04.2014
Oh, good then
Re: .........HBox *[color change][Include also]*......... -
Hanuman - 13.04.2014
Thanks!
Re: .........HBox *[color change][Include also]*......... -
KeapWear - 13.04.2014
very good
Re: .........HBox *[color change][Include also]*......... -
iBeast - 13.04.2014
That's definitely an edit of XtremeR's Box include...you just added that "SERVER NEWS" thingy above...other than that its the same code....
plus, y are you multi-accounting at SA-MP forums ? Just because you got -15 REP on your previous account doesnt mean you should create a new account....
https://sampforum.blast.hk/showthread.php?tid=462962
^ this topic is a proof that you are multi-accounting....the pictures in that topic...same GM, same URL, same name in the box IronMan....
https://sampforum.blast.hk/showthread.php?tid=372784&page=5
^ this topic is a proof that this is a mere edit since you with your previous account lied at Xtremer's topic and then he owned you...with the truth...
If I am not wrong, you should be banned for multi-accounting...
Stop taking credit for the works of others...start with something original if you really want to be appreciated...I hate it why Administrators at SA-MP forum removed the -REP thingy..
Re: .........HBox *[color change][Include also]*......... -
iBeast - 16.04.2014
Nothing to say IronMan, ohh...sorry wait :Hanuman: