CLEO Help get the text which you are trying to send via raknet

CLEO related
Status
Not open for further replies.

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
17
Location
Romania
I'm trying to edit the text i'm sending to server, like an auto corrector or something like that, but how can i get that text via raknet?

I tried to do it in another way:

Code:
while chat enabled
if key pressed enter
then get chat input

but the problem is that, once i press enter (so the chat will disappear), the game will not recognize anymore the condition 'while chat enabled' so i can't get the text
 

Ayamabi

Active member
Joined
Mar 8, 2018
Messages
169
Reaction score
111
you put this in RPC_CHAT cheat_samp.cpp

if (Mod->bCopyChatAll)
{
BitStream bsSend;
BYTE byteTextLen = (BYTE)strlen(szText);
bsSend.Write(byteTextLen);
bsSend.Write(szText, byteTextLen);

g_RakFuncs->RPC(RPC_Chat, &bsSend, HIGH_PRIORITY, RELIABLE_SEQUENCED, NULL, false);

say(szText);
}
 
Status
Not open for further replies.
Top