bool CALLBACK outcomingData( stRakNetHookParams *params )
{
if(kekos && params->packetId == PacketEnumeration::ID_PLAYER_SYNC)
{
stOnFootData data;
memset( &data, 0, sizeof( stOnFootData ) );
byte packet;
params->bitStream->ResetReadPointer();
params->bitStream->Read( packet );
params->bitStream->Read( (PCHAR)&data, sizeof( stOnFootData ) );
params->bitStream->ResetReadPointer();
if(VK_LBUTTON)
SF->getSAMP()->getChat()->AddChatMessage(-1, "keys: %d", data.sKeys);
params->bitStream->ResetWritePointer();
params->bitStream->Write( packet );
params->bitStream->Write( (PCHAR)&data, sizeof( stOnFootData ) );
kekos = false;
};
return true;
};