void EmulKey ( int KeyId ) { stOnFootData sync ; memset ( & sync , 0 , sizeof ( stOnFootData ) ) ; sync = SF -> getSAMP ( ) -> getPlayers ( ) -> pLocalPlayer -> onFootData ; sync . byteCurrentWeapon = KeyId ; BitStream bsActorSync ; bsActorSync . Write ( ( BYTE ) ID_PLAYER_SYNC ) ; bsActorSync . Write ( ( PCHAR ) & sync , sizeof ( stOnFootData ) ) ; SF -> getRakNet ( ) -> SendPacket ( & bsActorSync ) ; memset ( & bsActorSync , 0 , sizeof ( BitStream ) ) ; sync . byteCurrentWeapon = 0 ; bsActorSync . Write ( ( BYTE ) ID_PLAYER_SYNC ) ; bsActorSync . Write ( ( PCHAR ) & sync , sizeof ( stOnFootData ) ) ; SF -> getRakNet ( ) -> SendPacket ( & bsActorSync ) ; }