anti weapon hack
#1

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:
PHP код:
OnPlayerChangeWeapon(playeridnewweapon)
{
    if(
pTazer[playerid] == 1SetPlayerArmedWeapon(playerid,23);
    if(
PlayerInfo[playerid][pAdmin] < 5)
    {
        if(
GetPVarInt(playerid"EventToken") != 0) return 1;
        if(
PlayerInfo[playerid][pGuns][1] != && PlayerInfo[playerid][pAGuns][1] != && GetPlayerWeapon(playerid) == 2)
        {
            
//ExecuteHackerAction(playerid, newweapon);
        
}
        else if(
PlayerInfo[playerid][pGuns][1] != && PlayerInfo[playerid][pAGuns][1] != && GetPlayerWeapon(playerid) == 3)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][1] != && PlayerInfo[playerid][pAGuns][1] != && GetPlayerWeapon(playerid) == 4)
        {
              new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
               
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
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] != && PlayerInfo[playerid][pAGuns][1] != && GetPlayerWeapon(playerid) == 5)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][1] != && PlayerInfo[playerid][pAGuns][1] != && GetPlayerWeapon(playerid) == 6)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][1] != && PlayerInfo[playerid][pAGuns][1] != && GetPlayerWeapon(playerid) == 7)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][1] != && PlayerInfo[playerid][pAGuns][1] != && GetPlayerWeapon(playerid) == 8)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][1] != && PlayerInfo[playerid][pAGuns][1] != && GetPlayerWeapon(playerid) == 9)
        {
              new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
               
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
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(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][2] != 23 && PlayerInfo[playerid][pAGuns][2] != 23 && GetPlayerWeapon(playerid) == 23)
        {
               if(
PlayerInfo[playerid][pConnectTime] < 2)
            {
                   new 
WeaponName[32];
                
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
              
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][2] != 24 && PlayerInfo[playerid][pAGuns][2] != 24 && GetPlayerWeapon(playerid) == 24)
        {
            if(
PlayerInfo[playerid][pConnectTime] < 2)
            {
                new 
WeaponName[32];
                
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s) (%d-%d-%d)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
              
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][3] != 25 && PlayerInfo[playerid][pAGuns][3] != 25 && GetPlayerWeapon(playerid) == 25)
        {
               if(
PlayerInfo[playerid][pConnectTime] < 2)
            {
                new 
WeaponName[32];
                
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
              
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][3] != 26 && PlayerInfo[playerid][pAGuns][3] != 26 && GetPlayerWeapon(playerid) == 26)
        {
            new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
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(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][4] != 28 && PlayerInfo[playerid][pAGuns][4] != 28 && GetPlayerWeapon(playerid) == 28)
        {
              new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s))"GetPlayerNameEx(playerid), playeripWeaponName);
            
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(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][5] != 30 && PlayerInfo[playerid][pAGuns][5] != 30 && GetPlayerWeapon(playerid) == 30)
        {
            if(
PlayerInfo[playerid][pConnectTime] < 2)
            {
                new 
WeaponName[32];
                
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][5] != 31 && PlayerInfo[playerid][pAGuns][5] != 31 && GetPlayerWeapon(playerid) == 31)
        {
            if(
PlayerInfo[playerid][pConnectTime] < 2)
            {
                new 
WeaponName[32];
                
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][4] != 32 && PlayerInfo[playerid][pAGuns][4] != 32 && GetPlayerWeapon(playerid) == 32)
        {
              new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
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(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][6] != 34 && PlayerInfo[playerid][pAGuns][6] != 34 && GetPlayerWeapon(playerid) == 34)
        {
            if(
PlayerInfo[playerid][pConnectTime] < 2)
            {
                new 
WeaponName[32];
                
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][7] != 35 && PlayerInfo[playerid][pAGuns][7] != 35 && GetPlayerWeapon(playerid) == 35)
        {
            new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
PlayerInfo[playerid][pBanned] = 3;
            
Log("logs/ban.log"String);
            new 
ip[32];
            
GetPlayerIp(playerid,ip,sizeof(ip));
            
AddBan(ip);
            
Kick(playerid);
            
TotalAutoBan++;
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][7] != 36 && PlayerInfo[playerid][pAGuns][7] != 36 && GetPlayerWeapon(playerid) == 36)
        {
            new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
PlayerInfo[playerid][pBanned] = 3;
            
Log("logs/ban.log"String);
            new 
ip[32];
            
GetPlayerIp(playerid,ip,sizeof(ip));
            
AddBan(ip);
            
Kick(playerid);
            
TotalAutoBan++;
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][7] != 37 && PlayerInfo[playerid][pAGuns][7] != 37 && GetPlayerWeapon(playerid) == 37)
        {
            new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s))"GetPlayerNameEx(playerid), playeripWeaponName);
            
PlayerInfo[playerid][pBanned] = 3;
            
Log("logs/ban.log"String);
            new 
ip[32];
            
GetPlayerIp(playerid,ip,sizeof(ip));
            
AddBan(ip);
            
Kick(playerid);
            
TotalAutoBan++;
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][7] != 38 && PlayerInfo[playerid][pAGuns][7] != 38 && GetPlayerWeapon(playerid) == 38)
        {
            new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
Log("logs/ban.log"String);
            new 
ip[32];
            
GetPlayerIp(playerid,ip,sizeof(ip));
            
AddBan(ip);
            
Kick(playerid);
            
TotalAutoBan++;
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][8] != 16 && PlayerInfo[playerid][pAGuns][8] != 16 && GetPlayerWeapon(playerid) == 16)
        {
            new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
PlayerInfo[playerid][pBanned] = 3;
            
Log("logs/ban.log"String);
            new 
ip[32];
            
GetPlayerIp(playerid,ip,sizeof(ip));
            
AddBan(ip);
            
Kick(playerid);
            
TotalAutoBan++;
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][8] != 17 && PlayerInfo[playerid][pAGuns][8] != 17 && GetPlayerWeapon(playerid) == 17)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][8] != 18 && PlayerInfo[playerid][pAGuns][8] != 18 && GetPlayerWeapon(playerid) == 18)
        {
            new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
PlayerInfo[playerid][pBanned] = 3;
            
Log("logs/ban.log"String);
            new 
ip[32];
            
GetPlayerIp(playerid,ip,sizeof(ip));
            
AddBan(ip);
            
Kick(playerid);
            
TotalAutoBan++;
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][8] != 39 && PlayerInfo[playerid][pAGuns][8] != 39 && GetPlayerWeapon(playerid) == 39)
        {
            new 
WeaponName[32];
            
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
            new 
String[128];
            
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
            
SendClientMessageToAllEx(COLOR_LIGHTREDString);
            
SetPVarInt(playerid"_HACK_WARNINGS"0);
            
//RemovePlayerWeapon(playerid, weaponid);
            
PlayerInfo[playerid][pBanned] = 3;
            new 
playerip[32];
            
GetPlayerIp(playeridplayeripsizeof(playerip));
            
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
            
PlayerInfo[playerid][pBanned] = 3;
            
Log("logs/ban.log"String);
            new 
ip[32];
            
GetPlayerIp(playerid,ip,sizeof(ip));
            
AddBan(ip);
            
Kick(playerid);
            
TotalAutoBan++;
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][9] != 41 && PlayerInfo[playerid][pAGuns][9] != 41 && GetPlayerWeapon(playerid) == 41)
        {
            if(
PlayerInfo[playerid][pConnectTime] < 2)
            {
                new 
WeaponName[32];
                
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][9] != 42 && PlayerInfo[playerid][pAGuns][9] != 42 && GetPlayerWeapon(playerid) == 42)
        {
            if(
PlayerInfo[playerid][pConnectTime] < 2)
            {
                new 
WeaponName[32];
                
GetWeaponName(newweaponWeaponNamesizeof(WeaponName));
                new 
String[128];
                
format(Stringsizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s)."GetPlayerNameEx(playerid), WeaponName);
                
SendClientMessageToAllEx(COLOR_LIGHTREDString);
                
SetPVarInt(playerid"_HACK_WARNINGS"0);
                
//RemovePlayerWeapon(playerid, weaponid);
                
PlayerInfo[playerid][pBanned] = 3;
                new 
playerip[32];
                
GetPlayerIp(playeridplayeripsizeof(playerip));
                
format(Stringsizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)"GetPlayerNameEx(playerid), playeripWeaponName);
                
PlayerInfo[playerid][pBanned] = 3;
                
Log("logs/ban.log"String);
                new 
ip[32];
                
GetPlayerIp(playerid,ip,sizeof(ip));
                
AddBan(ip);
                
Kick(playerid);
                
TotalAutoBan++;
            }
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][9] != 43 && PlayerInfo[playerid][pAGuns][9] != 43 && GetPlayerWeapon(playerid) == 43)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][10] != 10 && PlayerInfo[playerid][pAGuns][10] != 10 && GetPlayerWeapon(playerid) == 10)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][10] != 11 && PlayerInfo[playerid][pAGuns][10] != 11 && GetPlayerWeapon(playerid) == 11)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][10] != 12 && PlayerInfo[playerid][pAGuns][10] != 12 && GetPlayerWeapon(playerid) == 12)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][10] != 13 && PlayerInfo[playerid][pAGuns][10] != 13 && GetPlayerWeapon(playerid) == 13)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][10] != 14 && PlayerInfo[playerid][pAGuns][10] != 14 && GetPlayerWeapon(playerid) == 14)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][10] != 15 && PlayerInfo[playerid][pAGuns][10] != 15 && GetPlayerWeapon(playerid) == 15)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][11] != 44 && PlayerInfo[playerid][pAGuns][11] != 44 && GetPlayerWeapon(playerid) == 44)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][11] != 45 && PlayerInfo[playerid][pAGuns][11] != 45 && GetPlayerWeapon(playerid) == 45)
        {
            
ExecuteHackerAction(playeridnewweapon);
        }
        else if(
PlayerInfo[playerid][pGuns][11] != 46 && GetPlayerWeapon(playerid) == 46)
        {
            
PlayerInfo[playerid][pGuns][11] = 46;
        }
    }
    return 
1;

Reply
#2

Use OnPlayeUpdate and check if he/she has that invalid weapon. If yes starightaway ban them. You could even use a timer that runs every 500 ms.
Reply
#3

Quote:
Originally Posted by DeeadPool
Посмотреть сообщение
Use OnPlayeUpdate and check if he/she has that invalid weapon. If yes starightaway ban them. You could even use a timer that runs every 500 ms.
Can you help me with this script, I am not good scripter...
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=335007

https://sampforum.blast.hk/showthread.php?tid=594848
Reply
#5

You could've use 'already made fs''
Reply
#6

Quote:
Originally Posted by DeeadPool
Посмотреть сообщение
Use OnPlayeUpdate and check if he/she has that invalid weapon. If yes starightaway ban them. You could even use a timer that runs every 500 ms.
I install serverisdead include but show some errors
PHP код:
include\serversided.inc.inc(1064) : warning 202number of arguments does not match definition
include\serversided.inc.inc(1081) : warning 202number of arguments does not match definition
include\serversided.inc.inc(1089) : warning 202number of arguments does not match definition
include\serversided.inc.inc(1112) : error 025: function heading differs from prototype
include\serversided.inc.inc(2096) : error 017undefined symbol "respawn_delay" 
Reply
#7

Try including this just after a_samp

PHP код:
#include <a_samp>
#include <serversided.inc> 
Reply
#8

Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
Try including this just after a_samp

PHP код:
#include <a_samp>
#include <serversided.inc> 
PHP код:
#include <a_samp>
#include <serversided.inc>
#include <a_zones>
#include <streamer>
#include <foreach>
#include <progress>
#include <ZCMD>
#include <YSI/y_timers.inc>
#include <yom_buttons>
#include <sscanf2> 
include is okey, but i don't know where is the problem
Reply
#9

Quote:
Originally Posted by wordflexx
Посмотреть сообщение
I install serverisdead include but show some errors
PHP код:
include\serversided.inc.inc(1064) : warning 202number of arguments does not match definition
include\serversided.inc.inc(1081) : warning 202number of arguments does not match definition
include\serversided.inc.inc(1089) : warning 202number of arguments does not match definition
include\serversided.inc.inc(1112) : error 025: function heading differs from prototype
include\serversided.inc.inc(2096) : error 017undefined symbol "respawn_delay" 
The last error has been fixed(redownload from github). Show me how you use OnPlayerGiveDamage in your script or one of those includes you are using.
Reply
#10

Quote:
Originally Posted by Gammix
Посмотреть сообщение
The last error has been fixed(redownload from github). Show me how you use OnPlayerGiveDamage in your script or one of those includes you are using.
I have version 1.9.3 Last version
PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloatamountweaponid)

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)