26.08.2016, 18:16
Someone help me to find a new anti weapon hack, i have anti weapon hack but it's old, and some players have new S0 beit , They can hack weapons without no ban in server.
Anti weapon hack i use:
Anti weapon hack i use:
PHP код:
OnPlayerChangeWeapon(playerid, newweapon)
{
if(pTazer[playerid] == 1) SetPlayerArmedWeapon(playerid,23);
if(PlayerInfo[playerid][pAdmin] < 5)
{
if(GetPVarInt(playerid, "EventToken") != 0) return 1;
if(PlayerInfo[playerid][pGuns][1] != 2 && PlayerInfo[playerid][pAGuns][1] != 2 && GetPlayerWeapon(playerid) == 2)
{
//ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][1] != 3 && PlayerInfo[playerid][pAGuns][1] != 3 && GetPlayerWeapon(playerid) == 3)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][1] != 4 && PlayerInfo[playerid][pAGuns][1] != 4 && GetPlayerWeapon(playerid) == 4)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
else if(PlayerInfo[playerid][pGuns][1] != 5 && PlayerInfo[playerid][pAGuns][1] != 5 && GetPlayerWeapon(playerid) == 5)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][1] != 6 && PlayerInfo[playerid][pAGuns][1] != 6 && GetPlayerWeapon(playerid) == 6)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][1] != 7 && PlayerInfo[playerid][pAGuns][1] != 7 && GetPlayerWeapon(playerid) == 7)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][1] != 8 && PlayerInfo[playerid][pAGuns][1] != 8 && GetPlayerWeapon(playerid) == 8)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][1] != 9 && PlayerInfo[playerid][pAGuns][1] != 9 && GetPlayerWeapon(playerid) == 9)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
else if(PlayerInfo[playerid][pGuns][2] != 22 && PlayerInfo[playerid][pAGuns][2] != 22 && GetPlayerWeapon(playerid) == 22)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][2] != 23 && PlayerInfo[playerid][pAGuns][2] != 23 && GetPlayerWeapon(playerid) == 23)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][2] != 24 && PlayerInfo[playerid][pAGuns][2] != 24 && GetPlayerWeapon(playerid) == 24)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s) (%d-%d-%d)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][3] != 25 && PlayerInfo[playerid][pAGuns][3] != 25 && GetPlayerWeapon(playerid) == 25)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][3] != 26 && PlayerInfo[playerid][pAGuns][3] != 26 && GetPlayerWeapon(playerid) == 26)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
else if(PlayerInfo[playerid][pGuns][3] != 27 && PlayerInfo[playerid][pAGuns][3] != 27 && GetPlayerWeapon(playerid) == 27)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][4] != 28 && PlayerInfo[playerid][pAGuns][4] != 28 && GetPlayerWeapon(playerid) == 28)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s))", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
else if(PlayerInfo[playerid][pGuns][4] != 29 && PlayerInfo[playerid][pAGuns][4] != 29 && GetPlayerWeapon(playerid) == 29)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][5] != 30 && PlayerInfo[playerid][pAGuns][5] != 30 && GetPlayerWeapon(playerid) == 30)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][5] != 31 && PlayerInfo[playerid][pAGuns][5] != 31 && GetPlayerWeapon(playerid) == 31)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][4] != 32 && PlayerInfo[playerid][pAGuns][4] != 32 && GetPlayerWeapon(playerid) == 32)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
else if(PlayerInfo[playerid][pGuns][6] != 33 && PlayerInfo[playerid][pAGuns][6] != 33 && GetPlayerWeapon(playerid) == 33)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][6] != 34 && PlayerInfo[playerid][pAGuns][6] != 34 && GetPlayerWeapon(playerid) == 34)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][7] != 35 && PlayerInfo[playerid][pAGuns][7] != 35 && GetPlayerWeapon(playerid) == 35)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][7] != 36 && PlayerInfo[playerid][pAGuns][7] != 36 && GetPlayerWeapon(playerid) == 36)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][7] != 37 && PlayerInfo[playerid][pAGuns][7] != 37 && GetPlayerWeapon(playerid) == 37)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s))", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][7] != 38 && PlayerInfo[playerid][pAGuns][7] != 38 && GetPlayerWeapon(playerid) == 38)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][8] != 16 && PlayerInfo[playerid][pAGuns][8] != 16 && GetPlayerWeapon(playerid) == 16)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][8] != 17 && PlayerInfo[playerid][pAGuns][8] != 17 && GetPlayerWeapon(playerid) == 17)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][8] != 18 && PlayerInfo[playerid][pAGuns][8] != 18 && GetPlayerWeapon(playerid) == 18)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][8] != 39 && PlayerInfo[playerid][pAGuns][8] != 39 && GetPlayerWeapon(playerid) == 39)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][9] != 41 && PlayerInfo[playerid][pAGuns][9] != 41 && GetPlayerWeapon(playerid) == 41)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][9] != 42 && PlayerInfo[playerid][pAGuns][9] != 42 && GetPlayerWeapon(playerid) == 42)
{
if(PlayerInfo[playerid][pConnectTime] < 2)
{
new WeaponName[32];
GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
new String[128];
format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
SendClientMessageToAllEx(COLOR_LIGHTRED, String);
SetPVarInt(playerid, "_HACK_WARNINGS", 0);
//RemovePlayerWeapon(playerid, weaponid);
PlayerInfo[playerid][pBanned] = 3;
new playerip[32];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
PlayerInfo[playerid][pBanned] = 3;
Log("logs/ban.log", String);
new ip[32];
GetPlayerIp(playerid,ip,sizeof(ip));
AddBan(ip);
Kick(playerid);
TotalAutoBan++;
}
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][9] != 43 && PlayerInfo[playerid][pAGuns][9] != 43 && GetPlayerWeapon(playerid) == 43)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][10] != 10 && PlayerInfo[playerid][pAGuns][10] != 10 && GetPlayerWeapon(playerid) == 10)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][10] != 11 && PlayerInfo[playerid][pAGuns][10] != 11 && GetPlayerWeapon(playerid) == 11)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][10] != 12 && PlayerInfo[playerid][pAGuns][10] != 12 && GetPlayerWeapon(playerid) == 12)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][10] != 13 && PlayerInfo[playerid][pAGuns][10] != 13 && GetPlayerWeapon(playerid) == 13)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][10] != 14 && PlayerInfo[playerid][pAGuns][10] != 14 && GetPlayerWeapon(playerid) == 14)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][10] != 15 && PlayerInfo[playerid][pAGuns][10] != 15 && GetPlayerWeapon(playerid) == 15)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][11] != 44 && PlayerInfo[playerid][pAGuns][11] != 44 && GetPlayerWeapon(playerid) == 44)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][11] != 45 && PlayerInfo[playerid][pAGuns][11] != 45 && GetPlayerWeapon(playerid) == 45)
{
ExecuteHackerAction(playerid, newweapon);
}
else if(PlayerInfo[playerid][pGuns][11] != 46 && GetPlayerWeapon(playerid) == 46)
{
PlayerInfo[playerid][pGuns][11] = 46;
}
}
return 1;
}