[Include] polygons
#1

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:
CreatePolygonFloatarea[ ], all_points sizeof area ) - Create polygonReturns the ID of the polygon
DestroyPolygon
polygonid )
PolygonFlashForAllpolygonidcolor 0xFF0000AA )
PolygonFlashForPlayerplayeridpolygonidcolor 0xFF0000AA )
PolygonStopFlashForAllpolygonid )
PolygonStopFlashForPlayerplayeridpolygonid )
PolygonShowForAllpolygonidcolor 0xFFFFFFAA )
PolygonShowForPlayerplayeridpolygonidcolor 0xFFFFFFAA )
PolygonHideForAllplayeridpolygonid )
PolygonHideForPlayerplayeridpolygonid )
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:
OnPlayerEnterPolygonplayeridpolygonid )
OnPlayerLeavePolygonplayeridpolygonid 
Link: https://github.com/Seregamil/SA-MP-Polygons
Creator: Seregamil

P.S. Sorry for my bad English.

Reply
#2

This is very cool

nice job.
Reply
#3

WOW,
This is really nice and usefull.

Thanks! (REP+)
Reply
#4

wtf this is amazing.
So you create many tiny zonrs to make it show on map yea ? awesome
Reply
#5

Awesome dude.
Reply
#6

This works anywhere on map?
Reply
#7

Quote:
Originally Posted by Runcias
View Post
This works anywhere on map?
YES ^
Reply
#8

Good job. This is very useful.
Reply
#9

Thank you all.
Reply
#10

Quote:
Originally Posted by Runcias
View Post
This works anywhere on map?
Yes, you are right.
Reply
#11

Good work!
Nice idea
Reply
#12

thanks
Reply
#13

So cool, man.
Reply
#14

thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)