I have and I need a filterscript anti-money
#2

Well, it's pretty easy to create an anti money cheat :

PHP код:

#define GivePlayerMoney AC_GivePlayerMoney
#define ResetPlayerMoney AC_ResetPlayerMoney

new bool:pMoney[MAX_PLAYERS], oldM[MAX_PLAYERS];

stock AC_GivePlayerMoney(playeridmoney)
{
    
pMoney[playerid] = true;
    
GivePlayerMoney(playeridmoney);
    
SetTimerEx("stopMoney"50false"i"playerid);
    return 
1;
}

stock AC_ResetPlayerMoney(playerid)
{
    
pMoney[playerid] = true;
    
ResetPlayerMoney(playerid);
    
SetTimerEx("stopMoney"50false"i"playerid);
    return 
1;
}

forward stopMoney(playerid);
public 
stopMoney(playerid) { pMoney[playerid] = false; return 1; }

public 
OnPlayerUpdate(playerid)
{
    new 
money GetPlayerMoney(playerid);
    if(
money != oldM[playerid] && !pMoney[playerid])
    {
        
// The player cheats
    
}
    
oldM[playerid] = money;
    return 
1;

Reply


Messages In This Thread
I have and I need a filterscript anti-money - by IGeorge - 01.06.2014, 08:07
Re : I have and I need a filterscript anti-money - by S4t3K - 01.06.2014, 09:25

Forum Jump:


Users browsing this thread: 2 Guest(s)