08.07.2011, 11:16
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:
and here is the Bomber FS: http://pastebin.com/0r7ZyS9B
Can anyone help me?
Thanks in advance
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); } } }
Can anyone help me?
Thanks in advance