care ar putea sa ma ajute cu o faza ca am bagat un anti-hack si cand scoate unu de exemplu minigun nu imi scrie doar 1 data ca respectivu a luat ban ce ne face un spam ca ne umple ban.cfg [ Si pe linux si pe windows ne face]
Asta este anti-hack
public AntiHack()
{
new name[24];
new weapon;
new gunammo;
new string[256];
for (new i = 0; i <MAX_PLAYERS; i++)
{
for (new w = 0; w <MAX_PLAYERS; w++)
{
GetPlayerWeaponData(i, w, weapon, gunammo);
if((weapon == 10 || weapon == 11 || weapon == 12 || weapon == 13 || weapon == 35 || weapon == 36 || weapon == 37 || weapon == 38 || weapon == 39) && gunammo > 0)
{
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "[Anti-Hack]: %s a fost banat din cauza hack-ului de arme. (Weapon: %s)", name, GunNames[weapon]);
SendClientMessageToAll(COLOR_RED, string);
Ban(i);
BanLog(string);
}
}
}
return 1;
}
public JetPackCheck()
{
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
new string[128];
new name[24];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "[Anti-Hack] %s a fost anat din cauza hack-ului de jetkpack!", name);
SendClientMessageToAll(COLOR_RED, string);
Ban(i);
BanLog(string);
}
}
}
return 1;
}
Question
Viorel
care ar putea sa ma ajute cu o faza ca am bagat un anti-hack si cand scoate unu de exemplu minigun nu imi scrie doar 1 data ca respectivu a luat ban ce ne face un spam ca ne umple ban.cfg [ Si pe linux si pe windows ne face]
Asta este anti-hack
Link to comment
Share on other sites
7 answers to this question
Recommended Posts