Some snippets

OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,045
Likes
337
Points
113
Location
Lithuania
Website
ugbase.eu
20
#21
You can make rainbow your dialog / chat text.
PHP:
:SetChatInputEditBoxTextColor
{
    0.3.7 - R1
    0AB1: @SetChatInputEditBoxTextColor 1 Color 0xFF00FF00
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0E8            // SAMP_CHAT_INPUT_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pChatInput;
    0A8E: [email protected] = [email protected] + 0x8                // pChatInput->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
    0A8E: [email protected] = [email protected] + 0x127                // pEditBox->TextColor;
    0A8C: write_memory [email protected] size 4 value [email protected] virtual_protect 0
end
0AB2: 0
PHP:
:SetDialogInputEditBoxTextColor
{
    0.3.7 - R1
    0AB1: @SetDialogInputEditBoxTextColor 1 Color 0xFF00FF00
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0B8            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
    0A8E: [email protected] = [email protected] + 0x127                // pEditBox->TextColor;
    0A8C: write_memory [email protected] size 4 value [email protected] virtual_protect 0
end
0AB2: 0
 
Last edited:
Joined
Nov 1, 2018
Messages
28
Likes
2
Points
8
#24
OPCODE:
0B49: samp set_current_dialog_list_item [email protected]
Without SAMPFUNCS


PHP:
:Set_current_dialog_list_item
{
    0.3.7 - R1
    0AB1: @Set_current_dialog_list_item 0 item 5
}
0AA2: [email protected] = "samp.dll"
[email protected] += 0x21A0B8
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x20
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x143
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
0AB2: ret 0

:Set_current_dialog_list_item
{
    0.3.7 - R2
    0AB1: @Set_current_dialog_list_item 0 item 5
}
0AA2: [email protected] = "samp.dll"
[email protected] += 0x21A0C0
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x20
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x143
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
0AB2: ret 0

:Set_current_dialog_list_item
{
    0.3.7 - R3
    0AB1: @Set_current_dialog_list_item 0 item 5
}
0AA2: [email protected] = "samp.dll"
[email protected] += 0x26E898
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x20
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x143
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
0AB2: ret 0

:Set_current_dialog_list_item
{
    0.3.7 - R4
    0AB1: @Set_current_dialog_list_item 0 item 5
}
0AA2: [email protected] = "samp.dll"
[email protected] += 0x26E9C8
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x20
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x143
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
0AB2: ret 0

:Set_current_dialog_list_item
{
    0.3.DL
    0AB1: @Set_current_dialog_list_item 0 item 5
}
0AA2: [email protected] = "samp.dll"
[email protected] += 0x2AC9E0
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x20
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x143
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
0AB2: ret 0
Dialog row selection could be shorter with this pointer and offset. I've been using this for 2 weeks, seems good so far:
"samp.dll" + 0x12E350 + 0x143(offset) (SAMP 0.3.7-R1)
 

xAmUser

Active Member
Joined
Feb 23, 2018
Messages
33
Likes
1
Points
23
5
#25
Weapon WallHack
If someone somehow change weapon color and combine with this code.., you can get powerful shit xD

PHP:
[email protected] readMem 0x732F40 sz 1 vp 0 // Read only one time to get default value


// Write to make weapon skin / wall thru
writeMem 0x732F40 sz 1 vl 1 vp 0

// Write to set default value
writeMem 0x732F40 sz 1 vl [email protected] vp 0
hi how to do the same with player skins
 
Top