Problem With Checkweaponhack
#1

public CheckWeaponHack()
{
new string[256], plname[64];
new weaponid, ammo;
new Float:armor;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && PlayerInfo[i][pLCAdmin] < 11000)
{
GetPlayerWeaponData(i, 7, weaponid, ammo);
GetPlayerArmour(i, armor);
new pSpecialAction = GetPlayerSpecialAction(i);
if (weaponid >= 1 || pSpecialAction == SPECIAL_ACTION_USEJETPACK)
{
GetPlayerName(i, plname, sizeof(plname));
format(string, 256, "AntiCheat: %s was kick because using JetPack, Minigun, FlameThrower or RocketLauncher", plname);
SendClientMessageToAll(COLOR_LIGHTRED, string);
WarningLog(string);
Kick(i);
}
}
}
}




i don't know how to add more weapon can anyone tell me plz iwant to add sawn off shotgun
Reply
#2

That was a huge string
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)