HandleRPCPacketFunc doesn't give what I want(0.3DL)

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
Code:
case RPC_DisplayGameText:
{
    traceLastFunc("RPC_DisplayGameText");
    DWORD    style, time, strLen;
    char    msg[256] = { NULL };

    BitStream bsData(rpcParams->input, rpcParams->numberOfBitsOfData / 8, false);
    bsData.Read(style);
    bsData.Read(time);
    bsData.Read(strLen);
    bsData.Read(msg, strLen);
    msg[strLen] = '\0';

    addMessageToChatWindow("%s", msg);
    break;
}
Snippet from cheat_samp.cpp s0beit Wa3Rix Project X-U18.0
> Download (source)
> VirusTotal
 

IamSpawN

Member
Joined
Feb 25, 2020
Messages
22
Reaction score
1
Location
Turkey
[kod]
case RPC_DisplayGameText:
{
traceLastFunc("RPC_DisplayGameText");
DWORD stili, zaman, strLen;
char msg[256] = { NULL };

BitStream bsData(rpcParams->input, rpcParams->numberOfBitsOfData / 8, false);
bsData.Read(stil);
bsData.Read(zaman);
bsData.Read(strLen);
bsData.Read(mesaj, strLen);
msg[strLen] = '\0';

addMessageToChatWindow("%s", mesaj);
kırmak;
}
[/kod]
cheat_samp.cpp s0beit Wa3Rix Project X-U18.0'dan snippet
> İndir (kaynak)
> Virüs Toplamı
Doesn't work in 0.3DL version
 
Last edited:

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
Code:
            case RPC_DisplayGameText:
            {
                traceLastFunc("RPC_DisplayGameText");
                if (isCheatPanicEnabled() || !set._displaygametext) break;
                /*
                {'onDisplayGameText',
                {style = 'int32'},
                {time = 'int32'},
                {text = 'string32'}}
                */
                BitStream bsData(rpcParams->input, rpcParams->numberOfBitsOfData / 8, false);
                uint32_t style, time, textLen;
                char text[257];
                bsData.Read(style);
                bsData.Read(time);
                bsData.Read(textLen);
                bsData.Read(text, textLen);
                text[textLen] = '\0';

                if (set._displaygametext)
                    addMessageToChatWindow("{FF0000}RPC_DisplayGameText: {FFFFFF}%s", text);

                break;
            }
Working perfectly on mod_sa 0.3.DL source from github.
HostName: [0.3.7/DL] MovieServer Reloaded | ReloadedServer.c
 
Last edited:

IamSpawN

Member
Joined
Feb 25, 2020
Messages
22
Reaction score
1
Location
Turkey
[kod]
case RPC_DisplayGameText:
{
traceLastFunc("RPC_DisplayGameText");
if (isCheatPanicEnabled() || !set._displaygametext) break;
/*
{'onDisplayGameText',
{stil = 'int32'},
{zaman = 'int32'},
{metin = 'string32'}}
*/
BitStream bsData(rpcParams->input, rpcParams->numberOfBitsOfData / 8, false);
uint32_t stil, zaman, textLen;
karakter metni[257];
bsData.Read(stil);
bsData.Read(zaman);
bsData.Read(textLen);
bsData.Read(metin, metinLen);
metin[textLen] = '\0';

if (set._displaygametext)
addMessageToChatWindow("{FF0000}RPC_DisplayGameText: {FFFFFF}%s", metin);

kırmak;
}
[/kod]
Dan mod_sa 0.3.DL kaynağı üzerinde mükemmel çalışma github .
Ana BilgisayarAdı: [0.3.7/DL] MovieServer Yeniden Yüklendi | ReloadedServer.c
Thanks bro :)
 
Top