Anti Cheat Problem!
#1

Ok i started using AntiCheat - Balkan Secutity and i have a problem:
When I jump and collct money it kickes me, well i want to be kicked if Im using money cheats

Here is the code (this is just the money code not the whole anti cheat):
pawn Код:
//=====================[ANTI MONEY HACK]=====================
    if(NN == 1)
    {
        if(GetPVarInt(i, "AdminProtect") == 0)
        {
            new money = GetPlayerMoney(i);
            if(GetPVarInt(i, "SafeMoney") == 0 && money > Money1[i] && Protection[i] == 0 && kicked[i] == 0)
            {
                GetPlayerName(i, Plname, sizeof(Plname));
                SendClientMessage(i,COLOR_YELLOW, "* AntiCheat: Your Money Has Been Reseted To Normal Value - Reason: Money Cheats!");
                AC_BS_ResetPlayerMoney (i);
                AC_BS_GivePlayerMoney (i, Money1[i]);
                getdate(yr,m,d);
                gettime(h,mi,s);
                format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d]=> AntiCheat: Has Reseted %s Money - Reason: Money Cheats!",d,m,yr,h,mi,s,Plname);
                log(string);
                MoneyWarning[i]++;
                if(MoneyWarning[i] == 3)
                {
                    AC_BS_ResetPlayerMoney (i); kicked[i] = 1;
                    AC_BS_GivePlayerMoney (i, Money1[i]);
                    GetPlayerName(i, Plname, sizeof(Plname));
                    GetPlayerIp(i, ipadress, sizeof(ipadress));
                    format(string, sizeof(string), "*** AntiCheat: Has Kicked %s (%d) - Reason: Money Cheats!",Plname, playerid);
                    SendClientMessageToAll(COLOR_RED, string);
                    format(stR, sizeof(stR),"{CD0000}Kicked!\n{FFF8DC}Name:{CD0000} %s\n{FFF8DC}Reason:{CD0000} Money Cheats\n{FFF8DC}IP:{CD0000} %s\n\n{CD0000}If You Think That You Are Kicked For No Reason Or The AntiCheat Has made A Mistake,\nPress F8 And Report Mistake On Forums With Proof!\nWeb Site: %s",Plname,ipadress,forum);
                    ShowPlayerDialog(i, 20000, DIALOG_STYLE_MSGBOX, "{FFF8DC}AntiCheat",stR, "Ok", "");
                    getdate(yr,m,d);
                    gettime(h,mi,s);
                    format(string,sizeof(string), "[%d/%d/%d]-[%d:%d:%d]=> AntiCheat: Has Kicked %s - Reason: Money Cheats!",d,m,yr,h,mi,s,Plname);
                    log(string);
                    SetTimerEx("kick",10, false, "i", i);
                }
            }
            if(GetPVarInt(i, "SafeMoney") == 1)
            {
                Protection[i] = 1;
                Money1[i] = GetPlayerMoney(i);
                SetPVarInt(i, "SafeMoney", 0);
            }
        }
    }
Reply
#2

Anyone please help or at least tell me if it is possible?!!?
Reply
#3

bump!
Reply
#4

Disable stun bonus for everyone , so when they jump they will dont take money and anti-cheat will not detect them as cheaters
pawn Код:
EnableStuntBonusForAll(0);
WIKI
Reply
#5

No i Want that players get money but that the anti cheat doesnt kick them!
Reply
#6

You can't do that with functions like that.
Reply
#7

How do you do it than?
Reply
#8

you should first disable sunt bonus, after you'll should make an system which will be like stun bonus which will have something Money1[i]+=2000
somewhere I saw an stunt bonus sytem, don't remember where
Reply
#9

I think i know what to do but not how to do Example: AC_BS_GivePlayerMoney ====> SetPVarInt(i, "SafeMoney", money) ====> if(GetPVarInt(i, "SafeMoney") == 0 && money > Money1[i] && Protection[i] == 0 && kicked[i] == 0)
And the anticheat leaves that alone is its LIKE THIS:
pawn Код:
if(GetPVarInt(i, "SafeMoney") == 1)
            {
                Protection[i] = 1;
                Money1[i] = GetPlayerMoney(i);
                SetPVarInt(i, "SafeMoney", 0);
            }
        }
    }
Now how to i do that for EnableStuntBonus, Or is it even possible - Include:
Код:
#include <a_players>
stock AC_BS_ResetPlayerMoney(playerid)
{
	ResetPlayerMoney(playerid);
	SetPVarInt(playerid, "SafeMoney", 1);
	return 1;
}
stock AC_BS_GivePlayerMoney(playerid, money)
{
	GivePlayerMoney(playerid, money);
	SetPVarInt(playerid, "SafeMoney", 1);
	return 1;
}
stock AC_BS_SetPlayerVirtualWorld(playerid, vw)
{
	SetPVarFloat(playerid,"TeleportProtection",1);
	SetPlayerVirtualWorld(playerid,vw);
	SetPVarInt(playerid, "SafeVW", vw);
	return 1;
}
stock AC_BS_SetPlayerInterior(playerid, intid)
{
	SetPVarFloat(playerid,"TeleportProtection",1);
	SetPlayerInterior(playerid, intid);
	SetPVarInt(playerid, "SafeInt", intid);
	return 1;
}
stock AC_BS_SetPlayerPos(playerid, Float:xx, Float:yy, Float:zz)
{
	SetPVarFloat(playerid,"TeleportProtection",1);
	SetPlayerPos(playerid, xx,yy,zz);
	SetPVarInt(playerid, "SafeTeleport", 1);
	return 1;
}
stock AC_BS_SetPlayerHealth(playerid,Float:helti)
{
	SetPVarFloat(playerid,"HealthProtection",1);
	SetPlayerHealth(playerid,helti);
	SetPVarFloat(playerid,"SafeHealth",helti);
}
stock AC_BS_SetPlayerArmour(playerid,Float:armor)
{
	SetPVarFloat(playerid,"ArmourProtection",1);
	SetPlayerArmour(playerid,armor);
	SetPVarFloat(playerid,"SigurniArmor",armor);
}
Reply
#10

Anyone help me or tell me what to do!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)