Anti Cheat Problem!
#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


Messages In This Thread
Anti Cheat Problem! - by ThePrograme - 27.01.2013, 17:31
Re: Anti Cheat Problem! - by ThePrograme - 28.01.2013, 15:00
Re: Anti Cheat Problem! - by ThePrograme - 29.01.2013, 13:39
Re: Anti Cheat Problem! - by doreto - 29.01.2013, 13:47
Re: Anti Cheat Problem! - by ThePrograme - 29.01.2013, 13:55
Re: Anti Cheat Problem! - by SuperViper - 29.01.2013, 14:22
Re: Anti Cheat Problem! - by ThePrograme - 29.01.2013, 14:46
Re: Anti Cheat Problem! - by mineralo - 29.01.2013, 15:33
Re: Anti Cheat Problem! - by ThePrograme - 31.01.2013, 14:45
Re: Anti Cheat Problem! - by ThePrograme - 31.01.2013, 16:45

Forum Jump:


Users browsing this thread: 2 Guest(s)