Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AC_WeaponHack(playerid)
- {
- if(AC_SafeWeapon[playerid] == false)
- {
- if(Player[playerid][Spawned])
- {
- if(GetPlayerWeapon(playerid) != 0)
- {
- static weaponid;
- weaponid = GetPlayerWeapon(playerid);
- if(weaponid != 46)
- {
- if(!haveWeaponEquipped(playerid, weaponid))
- {
- Player[playerid][AntiWeaponHackWarnings]++;
- if(Player[playerid][AntiWeaponHackWarnings] >= 4)
- {
- /*static reason[60], days;
- format(reason, sizeof(reason), "Weapon-Hack");
- days = 30;
- SendClientMessageToAllEx(COLOR_LIGHTRED, "[AntiCheat]: %s foi banido por %d dias pela suspeita de %s.", Player[playerid][Name], days, reason);
- BOT_setPlayerBan(playerid, reason, days);*/
- SendClientMessageToAllEx(COLOR_LIGHTRED, "[AntiCheat]: %s foi kickado pela suspeita de Weapon-Hack.", Player[playerid][Name]);
- KickEx(playerid);
- }
- }
- else Player[playerid][AntiWeaponHackWarnings] = 0;
- }
- }
- }
- }
- AC_SafeWeapon[playerid] = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement