Anti weapon radius
#7

Quote:
Originally Posted by Shazwan
Посмотреть сообщение
Is this also include if they spawn a weapon in the radius, doest it be reset also?
Yes. So long as they are in the radius of the point, they cannot use a weapon using the provided code from other users. So whether you spawn, tp, walk or fly in, you cant use a weapon if you are in range of the point. You can use variables to add exceptions, for example:
Код:
new g_iWeaponExcepted[MAX_PLAYERS];
if(IsPlayerAdmin(playerid)) //if the player is an RCON admin they can use a gun in the area
g_iWeaponExcepted[playerid] = 1;
if(IsPlayerInRangeOfPoint(playerid, 50.0, x, y, z) && g_iWeaponExcepted[playerid] != 1)
{
 //disarms the player
}
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)