29.06.2009, 11:19
Код:
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 ...
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"
};

Greetz Riz
PS: Just say if u need more code