Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <YSI\y_hooks>
- const SILENT_SYNC = 206; // id pentru silent aimbot
- IPacket:206(playerid, BitStream:bs)
- {
- new bulletData[PR_BulletSync];
- BS_IgnoreBits(bs, 8);
- BS_ReadBulletSync(bs, bulletData);
- if(bulletData[PR_hitType] == BULLET_HIT_TYPE_PLAYER)
- {
- new Float: getPlayerX, Float: getPlayerY, Float: getPlayerZ, Float: getLastPlayerZ;
- GetPlayerPos(playerid, getPlayerX, getPlayerY, getPlayerZ);
- GetPlayerPos(bulletData[PR_hitId], getLastPlayerZ, getLastPlayerZ, getLastPlayerZ);
- new Float:betweenDistance = floatabs(bulletData[PR_origin][0] - getPlayerX) + floatabs(bulletData[PR_origin][1] - getPlayerY);
- if(bulletData[PR_offsets][0] == 0.0 && bulletData[PR_offsets][1] == 0.0 && bulletData[PR_offsets][2] == 0.0 || betweenDistance < 0.15 || floatabs(bulletData[PR_origin][2] - getPlayerZ) < 0.01 || floatabs(getLastPlayerZ - bulletData[PR_hitPos][2]) < 0.01)
- {
- SCM(playerid, COLOR_LIGHTRED, "(Warning): {FFFFFF}Silent Aimbot detectat [raknet pachets].");
- defer kick_timer(playerid);
- }
- }
- return 1;
- }
- timer kick_timer[1000](playerid)
- {
- Kick(playerid);
- }
- CMD:arme(playerid, params[])
- {
- GivePlayerWeapon(playerid, 31, 999);
- GivePlayerWeapon(playerid, 24, 999);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement