Help with IsPlayerInArea
#1

Hello, I have been working on a SafeZone, and i wanted it so when you walked into the SafeZone it would disarm you, i've made this
Код:
public OnPlayerUpdate(playerid)
{
    IsPlayerInArea(playerid, 2972.0000, 581.7188, 676.0000, 2930.0000);
 	{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(X >= 2972.0000 && X <= 581.7188 && Y >= 676.0000 && Y <= 2930.0000)
	{
 	ResetPlayerWeapons(playerid);
 	return 1;
    }
	}
	return 1;
}
but when i enter the safezone i still have my guns... can someone help me please
Reply


Messages In This Thread
Help with IsPlayerInArea - by LeXuZ - 19.11.2014, 17:54
Re : Help with IsPlayerInArea - by Dutheil - 19.11.2014, 17:56
Re: Help with IsPlayerInArea - by Fel486 - 19.11.2014, 17:56
Re: Help with IsPlayerInArea - by LeXuZ - 19.11.2014, 17:58
Re : Help with IsPlayerInArea - by Dutheil - 19.11.2014, 18:01
Re: Help with IsPlayerInArea - by LeXuZ - 19.11.2014, 18:17
AW: Help with IsPlayerInArea - by Nero_3D - 19.11.2014, 18:30

Forum Jump:


Users browsing this thread: 7 Guest(s)