18.01.2010, 14:29
I always thought that players were weapon hacking in the server... but yesterday it happend to me. I joined server "Connected blablalbla" en 1 sec later Server closed the connection...
My m8 was in so he told me i was banned for weapon hacking... it happens now and then. This is the code:
I hope somebody can help me fixing this.
My m8 was in so he told me i was banned for weapon hacking... it happens now and then. This is the code:
pawn Код:
public AntiWeaponHack()
{
new string[128], tmpname[MAX_PLAYER_NAME];
for (new i = 0; i < MAX_PLAYERS; i++)
{
switch(GetPlayerWeapon(i))
{
case 9, 11, 12, 13, 17, 36, 37, 38, 39, 40, 42, 41, 43, 44, 45, 47:
{
GetPlayerName(i, tmpname, sizeof(tmpname));
format(string, sizeof(string), "[ANTI-CHEAT] %s has been auto-banned for Weapon Hacking.", tmpname);
SendClientMessageToAll(GAME_ENGINE, string);
print(string);
BanEx(i, weapon);
}
}
}
return 1;
}