Код
void sendSCMEvent ( int iEvent, int iVehicleID, int iParam1, int iParam2 )
{
if ( g_SAMP == NULL )
return;
// uint32_t func = g_dwSAMP_Addr + FUNC_SENDSCMEVENT;
// __asm push iParam2
// __asm push iParam1
// __asm push iVehicleID
// __asm push iEvent
// __asm call func
RakNet::BitStream ScmEvent;
ScmEvent.Write(iVehicleID)
ScmEvent.Write(iParam1);
ScmEvent.Write(iParam2);
ScmEvent.Write(iEvent);
g_SAMP->pRakClientInterface->RPC(&RPC_ScmEvent, &ScmEvent, HIGH_PRIORITY,
RELIABLE_ORDERED, 0, 0);
}