PHP код:
hook OnOutcomingRPC(playerid, rpcid, BitStream:bs)
{
if(rpcid == 164)
{
new
Float:x,
Float:y,
Float:z,
Float:angle,
vehicleid,
modelid,
InteriorColor1,
InteriorColor2,
Float:health,
interior,
DoorDamageStatus,
PanelDamageStatus,
LightDamageStatus,
tireDamageStatus,
addsiren,
mods,
PaintJob,
BodyColor1,
BodyColor2;
BS_ReadValue(
bs,
PR_INT16, vehicleid,
PR_INT32, modelid,
PR_FLOAT, x,
PR_FLOAT, y,
PR_FLOAT, z,
PR_FLOAT, angle,
PR_INT8, InteriorColor1,
PR_INT8, InteriorColor2,
PR_FLOAT, health,
PR_INT8, interior,
PR_INT32, DoorDamageStatus,
PR_INT32, PanelDamageStatus,
PR_INT8, LightDamageStatus,
PR_INT8, tireDamageStatus,
PR_INT8, addsiren
);
printf("%i %i %f %f %f %f %i %i %f %i %i %i %i %i %i", vehicleid, modelid, x, y, z, angle, InteriorColor1, InteriorColor2, health, interior, DoorDamageStatus, PanelDamageStatus, LightDamageStatus, tireDamageStatus, addsiren);
for (new a = 0; a < 14; a++)
{
BS_ReadValue(bs, PR_INT8, mods);
printf("Mod Slot %i: %i",a, mods);
}
BS_ReadValue(
bs,
PR_INT8, PaintJob,
PR_INT32, BodyColor1,
PR_INT32, BodyColor2
);
printf("%i %i %i",PaintJob, BodyColor1, BodyColor2);
BS_ResetReadPointer(bs);
}
return Y_HOOKS_CONTINUE_RETURN_1;
}