bool CALLBACK incomingRPC(stRakNetHookParams *params)
{
if (params->packetId == ScriptRPCEnumeration::RPC_ScrClientMessage && xui == true)
{
char szPlayerName[25];
DWORD color;
byte nameLen;
char char1[128];
char message[128];
char dolbaeb[128];
params->bitStream->ResetReadPointer();
params->bitStream->Read(szPlayerName);
params->bitStream->Read(color);
params->bitStream->Read(nameLen);
params->bitStream->Read(message, nameLen);
params->bitStream->ResetReadPointer();
message[nameLen] = '\0';
sprintf(char1, "%s достает таблетки.", szPlayerName);
sprintf(dolbaeb, "Осталось таблеток адреналина : {dcedf9}%d", Adrenalin);
if (!strcmp(char1, message) && zali == true)
{
Adrenalin--;
SF->getSAMP()->getChat()->AddChatMessage(-1, "%s %d", dolbaeb, Adrenalin);
}
}
return true;
}