31.01.2013, 14:45
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:
Now how to i do that for EnableStuntBonus, Or is it even possible - Include:
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);
}
}
}
Код:
#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); }