[SOLVED] Admin immunity in junkbuster
#3

Код:
public JunkBuster(playerid)
{
	new Float:health,Float:armour,weaponid,aping,reason[64];
	new Float:x,Float:y,Float:z;
	for(new i=0;i<MAX_PLAYERS;i++)
	{
        if(JB_Variables[HEALTH_HACK] && !JB_IsPlayerAdmin(i/playerid*))
        {
            GetPlayerHealth(i,health);
            if(health>100)
            {
		         JB_Ban(i,"Health hack");
		         continue;
	        }
        }
	}
	return 1;
}
* i or playerid, none work

This is the more complete code , if it helps ...
Here the health_hack code, I gess I put everything that has 2 do with it in here;

pawn Код:
#define HEALTH_HACK 3

new JB_Variables[MAX_VARIABLES]=
{
    true,//WeaponHack
    true,//MoneyHack
    true,//Jetpack
    true,//HealthHack
    true,//ArmourHack
    true,//DriveBy
    true,//Spam
    true,//CommandSpam
    true,//BadWords
    true,//CarJackHack
    false,//TeleportHack
    500,//MaxPing
    true,//SpectateHack
    true,//Blacklist
    true,//IpBans
    true,//TempBans
    3,//SpawnKill
    true,//CapsLock
    false,//3DSpeed
    260//MaxSpeed
};
new JB_VariableNames[MAX_VARIABLES][32]=
{
    "WeaponHack",
    "MoneyHack",
    "Jetpack",
    "HealthHack",
    "ArmourHack",
    "DriveBy",
    "Spam",
    "CommandSpam",
    "BadWords",
    "CarJackHack",
    "TeleportHack",
    "MaxPing",
    "SpectateHack",
    "Blacklist",
    "IpBans",// also contains IP-bans
    "TempBans",
    "SpawnKill",//Set this to the max spawnkills you want to allow
    "CapsLock",
    "3DSpeed",
    "MaxSpeed"
};
I'm trying to learn this language for long time but doesn't make any sence 2 me yet xD

Greetz Riz
PS: Just say if u need more code
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)