Quote:
Originally Posted by zPain
Poste a funзгo.
|
PHP код:
function Anti_Update(i)
{
if(GetPlayerAmmo(i) >= 400)
{
new reason[128] = "Ammo Hack";
new stringg[128];
format(stringg, sizeof(stringg),"%s is banned for "COL_RED"(Ammo Hack) ID: %d!", gpInfo[i][pname23], i);
SendMessageToAllAdmins(stringg,-1);
new bquery[200], IP[16];
GetPlayerIp(i, IP, 16);
mysql_format(bandb, bquery, sizeof(bquery),"INSERT INTO bandata(admin, player, reason, IP, banned) VALUES('ANTICHEAT', '%e', '%e','%s', 1)", PlayerName(i), reason, IP);
mysql_tquery(bandb, bquery, "OnPlayerBanned", "dds", -1, i, reason);
ShowPlayerDialog(i, dialogban, DIALOG_STYLE_MSGBOX, "NOTIFICATION", "You are {FF0000}banned {FFFFFF}from the server , \nplease go to sampdayz.com/forum to make an unban appeal", "", "");
Kick(i);
}