Posts: 210
Threads: 36
Joined: Jan 2011
Reputation:
0
Hello!
How do I kill sites only in an area or a red square (quite large). Kill mean to put only sites in the area covered with red. How?
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Use GangZoneCreate to create a red square on the map. Use IsPlayerInArea to detect whether players are inside it or not. You'll have to handle damage server-side if you want to prevent players doing damage outside (or inside? You weren't clear) this area.
To handle damage server-side, set everyone's team to 0 to disable damage, then use OnPlayerTakeDamage to manually handle damage.
Posts: 210
Threads: 36
Joined: Jan 2011
Reputation:
0
I want to say kill sites only red square, not out
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Okay then. I gave you ideas.