[HELP] Banning Players With Weapons
#9

Try this:

pawn Код:
forward WeaponBan();
public WeaponBan()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerWeapon(i) != 0))
            {
                new string[128], name[24];

                GetPlayerName(i,name,24);

                format(string,128,"%s (%d) Has Been Automatically Banned For Weapon Hacks.",name,i);
                SendClientMessageToAll(-1,string);

                print(string);

                Ban(i);

            }
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)