19.01.2012, 16:19
I have this anti-cheat and when i try to hack a wep i always get banned but today i saw a guy spawning weps killing around and he didnt get banned.
How should i get them easily.
How should i get them easily.
PHP код:
public OnGameModeInit()
{
SetTimer("WeaponCheck",2000,1);
return 1;
}
public WeaponCheck()
{
new playerid, IP[16];
if( PlayerInfo[playerid][pAdmin] >=1 ) return 0;
if( WeaponGiven[playerid] == 1 ) return 0;
if( Logged[playerid] == 1 )
{
new weaponid = GetPlayerWeapon( playerid );
if( ( weaponid >= 1 && weaponid <=45 ) )
{
GetPlayerName( playerid, Nam, sizeof Nam );
GetPlayerIp( playerid, IP, 16 );
format( mystring, sizeof mystring, "Admin-Log: %s has been banned for weapon hack(%s).", Nam, IP);
SendAdminMessage( COLOR_RED, mystring );
BanEx(playerid, "WEAPON HACK");
}
}
return 1;
}