Anti weapon radius
#4

You can use OnPlayerUpdate or A timer that checks if the player is in range and if it is, you'll set the the fist. It'll look like:
pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(...)) //If they are in the range that you want
    {
        if(GetPlayerWeapon(playerid)!=0) //If They have another weapon beside fist
        {
            SetPlayerArmedWeapon(playerid,0); //Set their armed weapon to fist
        }
    }
}
Reply


Messages In This Thread
Anti weapon radius - by Shazwan - 04.06.2014, 07:59
Re: Anti weapon radius - by Rittik - 04.06.2014, 08:09
Re: Anti weapon radius - by Shazwan - 04.06.2014, 08:13
Re: Anti weapon radius - by Koala818 - 04.06.2014, 08:17
Re: Anti weapon radius - by Rittik - 04.06.2014, 08:21
Re: Anti weapon radius - by Shazwan - 04.06.2014, 08:48
Re: Anti weapon radius - by BlackSirrah239 - 04.06.2014, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)