14.02.2018, 23:31
Quote:
this script will disable GetPlayerTargetPlayer on everyone with weapon in hands
80% aimbots work on target, with my script you can fix alot of aimbots on your server. Код:
IPacket:PLAYER_SYNC(playerid, BitStream:bs) { if(GetPlayerWeapon(playerid) >= 22 && !IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 34) { //with ghostmode you can't hit player via weaponid 34 //there must be a check if player crouch return false new onFootData[PR_OnFootSync]; BS_IgnoreBits(bs, 8); BS_ReadOnFootSync(bs, onFootData); if(onFootData[PR_specialAction] != 3) { onFootData[PR_specialAction] = 3; BS_SetWriteOffset(bs, 8); BS_WriteOnFootSync(bs, onFootData); } } return true; } |