Please help me . I need help

Hossi_Bad

Участник
Автор темы
68
23
Hello everyone and don't be tired.

I made a hack gun in which I used the following code:

function onSendPacket(id, bitStream, priority, reliability, orderingChannel)
if Dgun and id == 204 then return false
end end

I made this hack gun for a server that when I play the hack gun in onfoot mode, I get kicked by anti-cheat.

But when I give myself a gun inside the car, I don't get kicked anymore, and the players are damaged by DB. But then when I get out of the car, I get kicked again by the anti-cheat.

Is there a function that the player is in onFoot mode, but the server thinks that it is in Car mode? Is there such a function?

I think that if the server thinks that I am in the inCar mode, but I am actually in the onFoot mode, I will not be kicked anymore

I really need this function and your help. Thank you. Please help me. Thank you.
 

wojciech?

Известный
206
120
Можно попробовать применить samp.lua и функцию отправки синхронизации (https://www.blast.hk/threads/13380/post-153001), чтобы подменить PlayerSync на VehicleSync.
Lua:
local sampev = require("samp.events")

function sampev.onSendPlayerSync(data)
    local vehicleData = samp_create_sync_data("vehicle")
    -- тут прописать нужные данные синхронизации
    vehicleData.send()
    return false
end

структура VehicleSync
C:
typedef struct VehicleSyncData {
    uint16_t vehicleId;
    uint16_t leftRightKeys;
    uint16_t upDownKeys;
    union {
        uint16_t keysData;
        SampKeys keys;
    };
    float     quaternion[4];
    VectorXYZ position;
    VectorXYZ moveSpeed;
    float     vehicleHealth;
    uint8_t   playerHealth;
    uint8_t   armor;
    uint8_t   currentWeapon : 6;
    uint8_t   specialKey : 2;
    uint8_t   siren;
    uint8_t   landingGearState;
    uint16_t  trailerId;
    union {
        float    bikeLean;
        float    trainSpeed;
        uint16_t hydraThrustAngle[2];
    };
} VehicleSyncData;
 
  • Нравится
Реакции: Hossi_Bad

Hossi_Bad

Участник
Автор темы
68
23
Ty Bro <3
Можно попробовать применить samp.lua и функцию отправки синхронизации (https://www.blast.hk/threads/13380/post-153001), чтобы подменить PlayerSync на VehicleSync.
Lua:
local sampev = require("samp.events")

function sampev.onSendPlayerSync(data)
    local vehicleData = samp_create_sync_data("vehicle")
    -- тут прописать нужные данные синхронизации
    vehicleData.send()
    return false
end

структура VehicleSync
C:
typedef struct VehicleSyncData {
    uint16_t vehicleId;
    uint16_t leftRightKeys;
    uint16_t upDownKeys;
    union {
        uint16_t keysData;
        SampKeys keys;
    };
    float     quaternion[4];
    VectorXYZ position;
    VectorXYZ moveSpeed;
    float     vehicleHealth;
    uint8_t   playerHealth;
    uint8_t   armor;
    uint8_t   currentWeapon : 6;
    uint8_t   specialKey : 2;
    uint8_t   siren;
    uint8_t   landingGearState;
    uint16_t  trailerId;
    union {
        float    bikeLean;
        float    trainSpeed;
        uint16_t hydraThrustAngle[2];
    };
} VehicleSyncData;

Ty Bro <3