29.12.2011, 21:18
Something like this:
pawn Code:
forward MoneyCheck();
public MoneyCheck()
{
new Msg[128], Msg2[136], Msg3[64], pName[MAX_PLAYER_NAME], Cash;
for (new playerid; playerid < MAX_PLAYERS; playerid++)
{
if (IsPlayerConnected(playerid))
{
Cash = GetPlayerMoney(playerid);
if (Cash > 999999990)
{
GetPlayerName(playerid, pName, sizeof(pName));
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, 0x10F441AA, "You forgot to pay the tax, nub.");
format(Msg, sizeof(Msg), "%s was auto-banned for MoneyHack - $%d.", pName, Cash);
SendClientMessageToAll(COLOR_RED, Msg);
GameTextForAll("~r~HAAAAAAAAAAAAAAAAAAX", 3000, 5);
BanLog(Msg);
format(Msg, sizeof(Msg), "You have Been Banned by ANTICHEAT. Reason: Moneyhack.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, Msg);
SendClientMessage(playerid, COLOR_RED, "To Get Unbanned Post an Unban Request at Our Forums");
SendClientMessage(playerid, COLOR_LIGHTRED, "Don't Evade, Otherwise you wont get unbanned.");
format(Msg2, sizeof(Msg2), "0,4%s was auto-banned for MoneyHack - $%d.", pName, Cash);
IRC_GroupSay(IRC_Group, EchoChan, Msg2);
format(Msg3, sizeof(Msg3), pName);
Blacklist(Msg3);
Ban(playerid);
dUserSetINT(pName).("AccountBanned", 1);
}
}
}
}