[.ASI] Spammer with Garret's HOOK

Joined
Oct 27, 2018
Messages
2
Likes
0
Points
1
1
#1
Hello, I tried for 2 days to create a chat spammer that will send either a message or a command to the server.
The HOOK I'm using is: https://github.com/Garret22/DX9Hook-SAMP
I finally did it by using C++ functions (keybd_event and SendInput) which I know are not good for this sort of stuff but that was the only way I succeded.
In short I need a script that I can use with that HOOK to spam messages in chat.

Thanks for reading this and wasting your time with me.
 

real_fl1k

Well-Known Member
Joined
Apr 23, 2020
Messages
63
Likes
4
Points
8
Location
Belgrade
5
#3
addr = samp.dll + 0x57F0 (R1)
__asm push message
__asm call addr

Doesn't work for commands tho, they a diff offset
 
OP
OP
A
Joined
Oct 27, 2018
Messages
2
Likes
0
Points
1
1
#5

DarkSerifu

Well-Known Member
Joined
Apr 3, 2018
Messages
54
Likes
14
Points
23
#6
C++:
void SendMessage(char *text, ...)
{
    if (pSamp->getInfo() == NULL) return;
    if (text == NULL) return;
    if (isBadPtr_readAny(text, 128)) return;

    if (text[0] == '/') ((void(__thiscall *) (void *_this, char *message)) (pSAMP->dwSAMPAddr + 0x65C60))(pSAMP->getInput(), text); // command
    else ((void(__thiscall *) (void *_this, char *message)) (pSAMP->dwSAMPAddr + 0x57F0)) (pSAMP->getPlayers()->pLocalPlayer, text); // text
}
 
Top