How do I make this?
#6

Now im encountering 2 problems, im using this:

PHP код:
public isPlayerInArea()
   {
       new 
Float:XFloat:YFloat:Z
       for(new 
i=0MAX_PLAYERSi++) 
       {
           
GetPlayerPos(iXYZ); 
           if (
<= 2806.4766 && >= 2566.6860 && <= -2332.2461 && >= -2562.3301)
           {
               
GivePlayerWeapon(i26500); 
           }
           else
           {
                
ResetPlayerWeapons(i);
           }
        }
   } 
with a timer SetTimer("isPlayerInArea", 1000, 1);

What I want is, to allow weapons in MULTIPLE areas. So how do I add in another area where weapons wont be reset?

And second, because of the timer that checks every 1 second, the weapon (in this case id 26 sawn off shotgun) gets 500 bullets every 1 second. I don't want this to happen. How can I make that possible? If I remove the timer, the 'isplayerinarea' check doesn't work.
Reply


Messages In This Thread
How do I make this? - by Gemini - 18.05.2011, 13:47
Re: How do I make this? - by Zh3r0 - 18.05.2011, 13:51
Re: How do I make this? - by MadeMan - 18.05.2011, 13:51
Re: How do I make this? - by Gemini - 18.05.2011, 14:12
Re: How do I make this? - by MadeMan - 18.05.2011, 14:32
Re: How do I make this? - by Gemini - 18.05.2011, 14:54
Re: How do I make this? - by MadeMan - 18.05.2011, 14:59
Re: How do I make this? - by Zh3r0 - 18.05.2011, 15:00
Re: How do I make this? - by Gemini - 18.05.2011, 15:16

Forum Jump:


Users browsing this thread: 5 Guest(s)