Why did I get those false informations? Because of what? I mean, the beginning is exactly the same for you and me.
By the way, thanks for updating your wiki ;P |
Yes, I know it is possible without the plugin, I have but the players cheat, killing very slowly, so I came to see if I would have the plugin, something more effective, use of Nex-AC but are mocking, thank you Jelly23 for the answer
|
if (killerid != INVALID_PLAYER_ID)
{
if (!PlayerAttacked[killerid][playerid])
{
https://github.com/urShadow/Pawn.Rak...isableKeysSync
SetPlayerDisableKeysSync(playerid, KEY_FIRE); Don't forget to add check for weaponid == 0 (Fist). |
I can not understand show me an example of the function please.
|
new isdisabled=0; cmd:disablefist() { disabled=1; SetPlayerDisableKeysSync(playerid, KEY_FIRE); return 1; } IPacket:PLAYER_SYNC(playerid, BitStream:bs) { new onFootData[PR_OnFootSync]; BS_IgnoreBits(bs, 8); BS_ReadOnFootSync(bs, onFootData); if(isdisabled&&GetPlayerWeapon(playerid)==0) { ProcessDisabledKeys(playerid, onFootData[PR_lrKey], onFootData[PR_udKey], onFootData[PR_keys]); } BS_SetWriteOffset(bs, 8); BS_WriteOnFootSync(bs, onFootData); return 1; }
Код:
new isdisabled=0; cmd:disablefist() { disabled=1; SetPlayerDisableKeysSync(playerid, KEY_FIRE); return 1; } IPacket:PLAYER_SYNC(playerid, BitStream:bs) { new onFootData[PR_OnFootSync]; BS_IgnoreBits(bs, 8); BS_ReadOnFootSync(bs, onFootData); if(isdisabled&&GetPlayerWeapon(playerid)==0) { ProcessDisabledKeys(playerid, onFootData[PR_lrKey], onFootData[PR_udKey], onFootData[PR_keys]); } BS_SetWriteOffset(bs, 8); BS_WriteOnFootSync(bs, onFootData); return 1; } |
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; }
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; } |
Care to explain how exactly this stops aimbots? I tried it with silentaim and it doesn't stop it.
|
Код:
new isdisabled=0; cmd:disablefist() { disabled=1; SetPlayerDisableKeysSync(playerid, KEY_FIRE); return 1; } IPacket:PLAYER_SYNC(playerid, BitStream:bs) { new onFootData[PR_OnFootSync]; BS_IgnoreBits(bs, 8); BS_ReadOnFootSync(bs, onFootData); if(isdisabled&&GetPlayerWeapon(playerid)==0) { ProcessDisabledKeys(playerid, onFootData[PR_lrKey], onFootData[PR_udKey], onFootData[PR_keys]); } BS_SetWriteOffset(bs, 8); BS_WriteOnFootSync(bs, onFootData); return 1; } |