Anti-Money hack script does not work properly
#2

Try this.

Код:
public OnPlayerUpdate(playerid)
{
    if(!IsPlayerConnected(playerid)) return 1;
    if(GetPlayerMoney(playerid) != pMoney[playerid])
    {
        new playername[MAX_PLAYER_NAME],string[128];
        GetPlayerName(playerid,playername,sizeof(playername));
        format(string,sizeof(string),"Server: {FF0000}%s {FFFFFF}was banned, reason: {FF0000}Money Hack{FFFFFF}",playername);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(pInfo[i][Admin] >= 1)
                {
                    SCM(i,COLOR_LIGHTRED,string);
                }
            }
        }
        new logstring[256],d,m,y,h,mi,s;
        gettime(h,mi,s);
        getdate(y,m,d);
        new plrIP[16];
        GetPlayerIp(playerid, plrIP, sizeof(plrIP));
        format(logstring,sizeof(logstring),"%d/%d/%d %d:%d:%d Server: %s[%s] was banned, reason: Money Hack",d,m,y,h,mi,s,playername,plrIP);
        Log(logstring);
        SafeResetPlayerMoney(playerid);
        new banstring[128];
        format(banstring,sizeof(banstring),"banip %s",plrIP);
        SendRconCommand(banstring);
        SendRconCommand("reloadbans");
        pInfo[playerid][Banned]=1;
        SetTimerEx("TimeKick",500,false,"i",playerid);
    }
    return 1;
}
Reply


Messages In This Thread
Anti-Money hack script does not work properly - by Vlad64 - 02.08.2014, 13:37
Re: Anti-Money hack script does not work properly - by McBan - 02.08.2014, 13:49
Re: Anti-Money hack script does not work properly - by Vlad64 - 02.08.2014, 14:44
Re: Anti-Money hack script does not work properly - by Stinged - 02.08.2014, 15:03
Re: Anti-Money hack script does not work properly - by Vlad64 - 02.08.2014, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)