help i need anti money cheat only!
#3

Well, it works =/ (i hope :O.. not tested)

On Top:
pawn Код:
forward AntiMoneyCheat();

#define MONEY_LIMIT    15000000 //The MAX limit of money.. if he have more that that, then his money get reset.
OnGameModeInit():
pawn Код:
SetTimer("AntiMoneyCheat",1000,1);
Put it where you want:
pawn Код:
public AntiMoneyCheat()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerAdmin(i) && IsPlayerConnected(i))
        {
            if(GetPlayerMoney(i)>=MONEY_LIMIT)
            {
                new name[MAX_PLAYER_NAME], string[128];
                GetPlayerName(i, name, sizeof(name));
                format(string, sizeof(string), "Anti Cheat: %s(%d) Please dont hack", name, i);
                SendClientMessageToAll(COLOR_ANTIHAX,string);
                ResetPlayerMoney(i); //Resets the player money
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
help i need anti money cheat only! - by Vlad_Riabov - 05.01.2011, 22:55
Re: help i need anti money cheat only! - by MTA - 05.01.2011, 23:40
Re: help i need anti money cheat only! - by Larsey123IsMe - 05.01.2011, 23:53
Re: help i need anti money cheat only! - by admantis - 05.01.2011, 23:57
Re: help i need anti money cheat only! - by Hiitch - 06.01.2011, 00:01
Re: help i need anti money cheat only! - by Souvlaki - 06.01.2011, 00:02
Re: help i need anti money cheat only! - by Vlad_Riabov - 06.01.2011, 00:29
Re: help i need anti money cheat only! - by Infamous - 06.01.2011, 02:31
Re: help i need anti money cheat only! - by Vlad_Riabov - 06.01.2011, 09:11
Re: help i need anti money cheat only! - by [MWR]Blood - 06.01.2011, 09:23

Forum Jump:


Users browsing this thread: 2 Guest(s)