[FilterScript] .........HBox *[color change][Include also]*.........
#1

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
pawn Код:
#include <Hbox>
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.
Reply
#2

Looks good is it an edit ?
Reply
#3

Nice job
Reply
#4

Nice FS :P
Reply
#5

Quote:
Originally Posted by ChandraLouis
Посмотреть сообщение
Looks good is it an edit ?
what? NO.
Anyway thanks for ur feedbacks
Reply
#6

Oh, good then
Reply
#7

Thanks!
Reply
#8

very good
Reply
#9

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..
Reply
#10

Nothing to say IronMan, ohh...sorry wait :Hanuman:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)