Sawn-off Ban
#3

Disable people from entering interiors,

Under "OnGameModeInit"

Код:
DisableInteriorEnterExits //I THINK
Then make your own way of buying weapons!

Then to ban people from using Sawn-offs use the following code:

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerWeapon(playerid) == WEAPON_SAWEDOFF)
    {
        SendClientMessage(playerid, COLOR_HERE, "Don't hack Sawn-Offs here! ");
        Ban(playerid);
        return 0;
    }
    return 1;
}
Hope that helps.

Although, you could stop people from having duel sawn-offs.

Put the following code under OnPlayerSpawn:

pawn Код:
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
Either way SHOULD stop your problem.
Reply


Messages In This Thread
Sawn-off Ban - by Rhemsis - 27.10.2009, 22:36
Re: Sawn-off Ban - by ev0lution - 27.10.2009, 22:48
Re: Sawn-off Ban - by Burridge - 27.10.2009, 22:50
Re: Sawn-off Ban - by Rhemsis - 28.10.2009, 14:42
Re: Sawn-off Ban - by MadeMan - 28.10.2009, 14:47
Re: Sawn-off Ban - by Sergei - 28.10.2009, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)