Using isPlayerInArea in another script, is this possible?
#1

I am working on a DM zone and currently using Bomber FS by Mauzen.
Also, I have set isPlayerInArea function in my gamemode, that enables players to only have weapons when they are in the Area 69 DM zone. Now I want to combine (?) this. I want players to only be able to drop bombs from the airplanes, when they are in the Area 69 zone.

Here is my anti weapon code:
Код:
public isPlayerInArea()
{
	new Float:X, Float:Y, Float:Z;
 	for(new i=0; i < MAX_PLAYERS; i++)
  	{
   		GetPlayerPos(i, X, Y, Z);
     	if (X <= 464.0057 && X >= -117.3833 && Y <= 2111.7815 && Y >= 1568.7208)
	   	{
       	}
       	else
		{
		   		ResetPlayerWeapons(i);
		}
   	}
}
and here is the Bomber FS: http://pastebin.com/0r7ZyS9B

Can anyone help me?
Thanks in advance
Reply


Messages In This Thread
Using isPlayerInArea in another script, is this possible? - by Gemini - 08.07.2011, 11:16
Re: Using isPlayerInArea in another script, is this possible? - by Jeffry - 08.07.2011, 11:25
Re: Using isPlayerInArea in another script, is this possible? - by Guest3598475934857938411 - 08.07.2011, 11:25
Re: Using isPlayerInArea in another script, is this possible? - by Jefff - 08.07.2011, 12:21

Forum Jump:


Users browsing this thread: 2 Guest(s)