19.01.2012, 19:06
pawn Код:
public WeaponCheck()
{
new
IP[16]
;
for ( new i = 0; i < MAX_PLAYERS; i++) { //Loop.
if(PlayerInfo[i][pAdmin] >= 1) return 0;
if(WeaponGiven[i] == 1) return 0;
if( Logged[i] == 1 )
{
if(GetPlayerWeapon(i) >= 1 && GetPlayerWeapon(i) <= 45) { //Is this just to test your anti cheat? Cause this will ban for all weapons..
new
p_Name[24],
mystring[128]
;
GetPlayerName( i, p_Name, sizeof( p_Name ));
GetPlayerIp( i, IP, 16 );
format( mystring, sizeof mystring, "Admin-Log: %s has been banned for weapon hack(%s).", p_Name, IP);
SendAdminMessage( COLOR_RED, mystring );
BanEx(i, "WEAPON HACK");
}
}
}
return 1;
}