26.06.2014, 16:04
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:
The system works like with a streamer plugin, and without it.
If you connected the plugin, you can use a new callback's:
Link: https://github.com/Seregamil/SA-MP-Polygons
Creator: Seregamil
P.S. Sorry for my bad English.
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
If you connected the plugin, you can use a new callback's:
PHP Code:
OnPlayerEnterPolygon( playerid, polygonid )
OnPlayerLeavePolygon( playerid, polygonid )
Creator: Seregamil
P.S. Sorry for my bad English.