Optimize this moneycheck?
#4

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);
     }
   }
}
if that's actually from your anticheat then I recommend reading this https://sampforum.blast.hk/showthread.php?tid=220089
Reply


Messages In This Thread
Optimize this moneycheck? - by Face9000 - 29.12.2011, 20:19
Re: Optimize this moneycheck? - by PowerPC603 - 29.12.2011, 21:18
Re: Optimize this moneycheck? - by AndreT - 29.12.2011, 21:20
Re: Optimize this moneycheck? - by cessil - 29.12.2011, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)