SA-MP Forums Archive
[FilterScript] Define's to Hex - 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] Define's to Hex (/showthread.php?tid=330407)



Define's to Hex - Kaczmi - 01.04.2012

Hello,

I was created a new script for #Define -> Hex in chat!!

It's fast.

Код:
[13:26:05] Test 1) ColouredText: 156 ms ; DefineToHex: 66 ms
[13:26:05] Test 2) ColouredText: 176 ms ; DefineToHex: 63 ms
[13:26:05] Test 3) ColouredText: 156 ms ; DefineToHex: 66 ms
[13:26:06] Test 4) ColouredText: 153 ms ; DefineToHex: 62 ms
[13:26:06] Test 5) ColouredText: 151 ms ; DefineToHex: 67 ms
[13:26:06] Test 6) ColouredText: 151 ms ; DefineToHex: 65 ms
[13:26:06] Test 7) ColouredText: 151 ms ; DefineToHex: 64 ms
[13:26:07] Test 8) ColouredText: 148 ms ; DefineToHex: 65 ms
(loop = 1000)

ColouredText is by Ryder.

Download: PASTEBIN

Use:
pawn Код:
public OnPlayerText(playerid,text[])
{
    SendPlayerMessageToAll(playerid,DefineToHex(text));
    return 0;
}
You can use colors:

Код:
#RED
#BLUE
#YELLOW
#GREY
#DBLUE
#DGREEN
#PINK
#LBLUE
#LGREEN
#WHITE
#ORANGE
#GREEN

=


Kaczmi


Re: Define's to Hex - Littlehelper - 01.04.2012

Its Great,
Nice Release.


Re: Define's to Hex - Kaczmi - 02.04.2012

Thx.

I can add some colors, if you want ..


Re: Define's to Hex - Niko_boy - 02.04.2012

Nice one easy configurable and yeah good job!