how 2 different checkareas?
#1

How can I add more to this code:

PHP код:
public isPlayerInArea()
   {
       new 
Float:XFloat:YFloat:Z//We use this to store player position
       
for(new i=0MAX_PLAYERSi++) //This line defines a name for all player, the name is "i"
       
{
           
GetPlayerPos(iXYZ); //Here we are storing the player position on the variables X, Y, and Z defined previously
           
if (<= 2918 && >= 925 && >= 598 && <= 2606)
           
/* This line is the important one!. Here, is where you change those numbers, by the ones
           you get from the /pos command. As you can see, those coordinates, are only the X and Y ones, the Z
           doesnt matter*/
           
{
               
ResetPlayerWeapons(i);
           }
       }
   } 
because I want to create anoter square area where weapons will be reset if a player enters, for this area the
x = 17 - -218 and y = -174 - -386

so it should be this: if (X <= 17 && X >= -218 && Y >= -174 && Y <= -36

but where do I add the code into this script? Help please.
Reply


Messages In This Thread
Help me with this script please! - by Gemini - 11.03.2011, 08:06
Re: how 2 different checkareas? - by Stigg - 11.03.2011, 10:00
Re: how 2 different checkareas? - by Gemini - 11.03.2011, 10:08
Re: how 2 different checkareas? - by Stigg - 11.03.2011, 10:10
Re: how 2 different checkareas? - by Gemini - 11.03.2011, 10:17
Re: how 2 different checkareas? - by Gemini - 11.03.2011, 14:31
Re: how 2 different checkareas? - by Gemini - 11.03.2011, 19:49
Re: how 2 different checkareas? - by Kwarde - 11.03.2011, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)