[Include] polygons - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] polygons (
/showthread.php?tid=522253)
polygons -
Seregamil1 - 26.06.2014
I want to introduce you to a system that allows you to
draw polygons in the SAMP.
Presentation:
Number of zones on every area < 100
Functions:
PHP Code:
CreatePolygon( Float: area[ ], all_points = sizeof area ) - Create polygon. Returns the ID of the polygon
DestroyPolygon( polygonid )
PolygonFlashForAll( polygonid, color = 0xFF0000AA )
PolygonFlashForPlayer( playerid, polygonid, color = 0xFF0000AA )
PolygonStopFlashForAll( polygonid )
PolygonStopFlashForPlayer( playerid, polygonid )
PolygonShowForAll( polygonid, color = 0xFFFFFFAA )
PolygonShowForPlayer( playerid, polygonid, color = 0xFFFFFFAA )
PolygonHideForAll( playerid, polygonid )
PolygonHideForPlayer( playerid, polygonid )
CountGangZones() - Displays the total number of gang zones on the entire server
The system works like with a streamer plugin, and without it.
If you connected the plugin, you can use a new callback's:
PHP Code:
OnPlayerEnterPolygon( playerid, polygonid )
OnPlayerLeavePolygon( playerid, polygonid )
Link:
https://github.com/Seregamil/SA-MP-Polygons
Creator:
Seregamil
P.S. Sorry for my bad English.
Re: polygons -
PT - 26.06.2014
This is very cool
nice job.
Re: polygons -
Excel™ - 27.06.2014
WOW,
This is really nice and usefull.
Thanks! (REP+)
Re: polygons -
Niko_boy - 28.06.2014
wtf this is amazing.
So you create many tiny zonrs to make it show on map yea ? awesome
Re: polygons -
friezakinght - 28.06.2014
Awesome dude.
Re: polygons -
thaKing - 28.06.2014
This works anywhere on map?
Re: polygons -
Excel™ - 28.06.2014
Quote:
Originally Posted by Runcias
This works anywhere on map?
|
YES ^
Re: polygons -
Jankingston - 28.06.2014
Good job. This is very useful.
Re: polygons -
Seregamil1 - 29.06.2014
Thank you all.
Re: polygons -
Seregamil1 - 29.06.2014
Quote:
Originally Posted by Runcias
This works anywhere on map?
|
Yes, you are right.
Re: polygons -
iRaiDeN - 29.06.2014
Good work!
Nice idea
Re: polygons -
Seregamil1 - 29.06.2014
thanks
Re: polygons -
Infility - 01.07.2014
So cool, man.
Re: polygons -
Seregamil1 - 05.07.2014
thanks