Kill in special zone. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Kill in special zone. (
/showthread.php?tid=500204)
Kill in special zone. -
Mititel - 11.03.2014
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?
Re: Kill in special zone. -
MP2 - 12.03.2014
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.
Re: Kill in special zone. -
Mititel - 12.03.2014
I want to say kill sites only red square, not out
Re: Kill in special zone. -
MP2 - 12.03.2014
Okay then. I gave you ideas.
Re: Kill in special zone. -
Mititel - 12.03.2014
So
I want war system, if you're in the red zone to put kill-sites, if you're outside the area not to add.
Re: Kill in special zone. -
Mititel - 13.03.2014
UP !?