11.06.2012, 17:23
I really think GetPlayerWeapon is screwed up, or very inaccurate.
It always thinks players which are only just connecting have miniguns.
Does anyone know how to check if the player is .. i'm not sure, validly spawned. It bans them almost instantly after connecting.
It always thinks players which are only just connecting have miniguns.
pawn Код:
new reason = GetPlayerWeapon(i);
if(reason == 16||reason==35||reason==36||reason==37||reason==38 && IsPlayerConnected(i))
{
format(msg,sizeof(msg),"Weapon hacks (%s)", WeaponName(reason));
BanUser2(i, msg, anticheatname);
}