13.03.2012, 17:20
Hey there,
I've got a problem with my Anti-hack, instead of it just sending a report to the admin,I want it to ban the player's IP/account also.
But when anybody connects, it bans them for nothing?
Here's my snippet.
Would really appriciate some help.
Thanks,
Ashley
I've got a problem with my Anti-hack, instead of it just sending a report to the admin,I want it to ban the player's IP/account also.
But when anybody connects, it bans them for nothing?
Here's my snippet.
Код:
new Float:Armour, Msg[128], Reason[128]; if (APlayerData[playerid][PlayerSpeed] > 300) GetPlayerName(PlayerToBan, Name, sizeof(Name)); SendReportToAdmins(playerid, "(Auto-Banned) Speed Hacks", true); format(Msg, 128, "{FF0000}[BANNED] You have been banned by {FFFFFF}Anti-Cheat {FFFF00}Reason: Speed Hacks."); SendClientMessage(playerid, 0xFFFFFFFF, Msg); BanEx(playerid, Reason); APlayerData[Player][BanTime] = 2147483640;
Thanks,
Ashley