mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Match ScmEvent; five reads forwarded to the vehicle event dispatcher
This commit is contained in:
1 parent
c5d8ac9dba
commit
e988b6c8e8
2 files changed
+22
-1
No files matched your search
+20
-1
@@ -98,7 +98,26 @@ void DestroyWeaponPickup(RPCParameters *rpcParams)
|
||||
|
||||
pNetGame->GetPickupPool()->sub_10013380(bytePickupIndex);
|
||||
}
|
||||
void ScmEvent(RPCParameters *rpcParams) {}
|
||||
void ScmEvent(RPCParameters *rpcParams)
|
||||
{
|
||||
PCHAR Data = reinterpret_cast<PCHAR>(rpcParams->input);
|
||||
int iBitLength = rpcParams->numberOfBitsOfData;
|
||||
|
||||
PLAYERID playerId;
|
||||
int iEvent;
|
||||
int iVehicle;
|
||||
int iArg1;
|
||||
int iArg2;
|
||||
|
||||
RakNet::BitStream bsData(Data,(iBitLength/8)+1,false);
|
||||
bsData.Read(playerId);
|
||||
bsData.Read(iEvent);
|
||||
bsData.Read(iVehicle);
|
||||
bsData.Read(iArg1);
|
||||
bsData.Read(iArg2);
|
||||
|
||||
sub_10001A60(playerId,iEvent,iVehicle,iArg1,iArg2);
|
||||
}
|
||||
void Weather(RPCParameters *rpcParams)
|
||||
{
|
||||
PCHAR Data = reinterpret_cast<PCHAR>(rpcParams->input);
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void sub_10001A60(PLAYERID playerId, int iEvent, int iVehicle, int iArg1, int iArg2); // .text:10001A60
|
||||
|
||||
void RegisterRPCs(RakClientInterface *);
|
||||
void UnRegisterRPCs(RakClientInterface *);
|
||||
|
||||
|
||||
Reference in new issue
Block a user