Closed samp-pinch closed 6 years ago
Hi, i probably shall not open issue for this, but can you help me? I have this code:
IPacket:PLAYER_SYNC(playerid, BitStream:bs) { new onFootData[PR_OnFootSync]; BS_IgnoreBits(bs, 8); BS_ReadOnFootSync(bs, onFootData); new Float:S = floatsqroot(floatpower(floatabs(onFootData[PR_velocity][0]), 2.0) + floatpower(floatabs(onFootData[PR_velocity][1]), 2.0) + floatpower(floatabs(onFootData[PR_velocity][2]), 2.0)) * 253.3; if(S > 100.0) { new string[144],name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string,sizeof(string),""SERVER"[Pawn.RakNet] "BELA"Igrac %s (%d) je kikovan zbog (OnFoot) speed hacka!", name,playerid); SendClientMessageToAll(-1, string); string[0] = EOS; //Kick(playerid); return false; } if(onFootData[PR_animationId] == 958 && onFootData[PR_weaponId] != WEAPON_PARACHUTE || onFootData[PR_animationId] == 959 && onFootData[PR_weaponId] != WEAPON_PARACHUTE) { new string[144],name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string,sizeof(string),""SERVER"[Pawn.RakNet] "BELA"Igrac %s (%d) je kikovan zbog fly hacka!", name,playerid); SendClientMessageToAll(-1, string); string[0] = EOS; //Kick(playerid); return false; } return true; }
And when player jump from building it kicks him for speed hack, how i can add check for that ? Thanks
Fixed
Hi, i probably shall not open issue for this, but can you help me? I have this code:
And when player jump from building it kicks him for speed hack, how i can add check for that ? Thanks