29.12.2011, 22:29
pawn Code:
forward MoneyCheck();
public MoneyCheck()
{
for(new i; i < MAX_PLAYERS; i++)
{
new cash = GetPlayerMoney(i);
if(cash > 999999990)
{
//SetPlayerHealth(i, 0.0);
SendClientMessage(i, 0x10F441AA, "You forgot to pay the tax,nub.");
new string[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(i, pName, sizeof(pName));
format(string, 100, "%s was auto-banned for MoneyHack - $%d.", pName,cash);
SendClientMessageToAll(COLOR_RED, string);
GameTextForAll("~r~HAAAAAAAAAAAAAAAAAAX", 3000, 5);
SendClientMessage(i,COLOR_LIGHTBLUE, "You have Been Banned by ANTICHEAT. Reason: Moneyhack.");
SendClientMessage(i,COLOR_RED, "To Get Unbanned Post an Unban Request at Our Forums");
SendClientMessage(i,COLOR_LIGHTRED, "Don't Evade, Otherwise you wont get unbanned.");
format(str,sizeof str,"0,4%s was auto-banned for MoneyHack - $%d.", pName,cash);
IRC_GroupSay(IRC_Group, EchoChan,str);
BanLog(string);
Blacklist(pName);
Ban(i);
new tmp[128];
//im no expert in this ini system but I'm pretty sure this wouldn't work
dUserSetINT(tmp).("AccountBanned",1);
}
}
}