19.01.2012, 16:29
pawn Код:
public WeaponCheck()
{
new IP[16];
for(new i = 0 ; i <= MAX_PLAYERS ; i++ )
if( PlayerInfo[i][pAdmin] >=1 ) return 0;
if( WeaponGiven[i] == 1 ) return 0;
if( Logged[i] == 1 )
{
new weaponid = GetPlayerWeapon( i );
if( ( weaponid >= 1 && weaponid <=45 ) )
{
GetPlayerName( i, Nam, sizeof Nam );
GetPlayerIp( i, IP, 16 );
format( mystring, sizeof mystring, "Admin-Log: %s has been banned for weapon hack(%s).", Nam, IP);
SendAdminMessage( COLOR_RED, mystring );
BanEx(i, "WEAPON HACK");
}
}
return 1;
}
EDIT: lol just same @above