You can make rainbow your dialog / chat text.
PHP:
:SetChatInputEditBoxTextColor
{
0.3.7 - R1
0AB1: @SetChatInputEditBoxTextColor 1 Color 0xFF00FF00
}
if 0AA2: 2@ = "samp.dll"
then
0A8E: 3@ = 2@ + 0x21A0E8 // SAMP_CHAT_INPUT_INFO_OFFSET (R1)
0A8D: 3@ = readMem 3@ sz 4 vp 0 // pChatInput;
0A8E: 4@ = 3@ + 0x8 // pChatInput->pEditBox;
0A8D: 4@ = readMem 4@ sz 4 vp 0 // pEditBox;
0A8E: 5@ = 4@ + 0x127 // pEditBox->TextColor;
0A8E: 6@ = 4@ + 0x133 // pEditBox->CharacterAtTextEndColor;
0A8C: write_memory 5@ size 4 value 0@ virtual_protect 0
0A8C: write_memory 6@ size 4 value 0@ virtual_protect 0
end
0AB2: 0
PHP:
:SetDialogInputEditBoxTextColor
{
0.3.7 - R1
0AB1: @SetDialogInputEditBoxTextColor 1 Color 0xFF00FF00
}
if 0AA2: 2@ = "samp.dll"
then
0A8E: 3@ = 2@ + 0x21A0B8 // SAMP_DIALOG_INFO_OFFSET (R1)
0A8D: 3@ = readMem 3@ sz 4 vp 0 // pDialog;
0A8E: 4@ = 3@ + 0x24 // pDialog->pEditBox;
0A8D: 4@ = readMem 4@ sz 4 vp 0 // pEditBox;
0A8E: 5@ = 4@ + 0x127 // pEditBox->TextColor;
0A8E: 6@ = 4@ + 0x133 // pEditBox->CharacterAtTextEndColor;
0A8C: write_memory 5@ size 4 value 0@ virtual_protect 0
0A8C: write_memory 6@ size 4 value 0@ virtual_protect 0
end
0AB2: 0
Last edited: