SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 26/06/2014, 04:04 PM   #1
Seregamil1
Big Clucker
 
Join Date: Nov 2012
Location: Russia, Altay
Posts: 132
Reputation: 45
Default polygons

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.

Seregamil1 is offline   Reply With Quote
Old 26/06/2014, 04:28 PM   #2
PT
Godfather
 
PT's Avatar
 
Join Date: Nov 2012
Location: Europe
Posts: 7,185
Reputation: 803
Default Re: polygons

This is very cool

nice job.
PT is offline   Reply With Quote
Old 27/06/2014, 10:47 AM   #3
Excel
Gangsta
 
Excel's Avatar
 
Join Date: Jul 2012
Posts: 548
Reputation: 95
Default Re: polygons

WOW,
This is really nice and usefull.

Thanks! (REP+)
__________________
NO MORE CODING SAMP :V
JUST PLAYING...
Excel is offline   Reply With Quote
Old 28/06/2014, 08:05 AM   #4
Niko_boy
High-roller
 
Niko_boy's Avatar
 
Join Date: Aug 2010
Location: Somewhere i belong
Posts: 1,336
Reputation: 138
Default Re: polygons

wtf this is amazing.
So you create many tiny zonrs to make it show on map yea ? awesome
__________________
nope[IMG]http://*******/1r0SOkH_[/IMG]
[CLOSED]LCSFreeroamDMStuntsAutoArena [0.3z][No SkinShot][sixtytiger.com]Want a decent Attack Defend Gamemode?
N/A176.31.229.148:7830Get This! Attack-Defend(v2.3.1)
Niko_boy is offline   Reply With Quote
Old 28/06/2014, 09:55 AM   #5
friezakinght
Big Clucker
 
friezakinght's Avatar
 
Join Date: Dec 2011
Posts: 160
Reputation: 7
Default Re: polygons

Awesome dude.
friezakinght is offline   Reply With Quote
Old 28/06/2014, 10:26 AM   #6
thaKing
Huge Clucker
 
thaKing's Avatar
 
Join Date: Feb 2014
Location: Mushroom fields
Posts: 293
Reputation: 37
Default Re: polygons

This works anywhere on map?
thaKing is offline   Reply With Quote
Old 28/06/2014, 12:31 PM   #7
Excel
Gangsta
 
Excel's Avatar
 
Join Date: Jul 2012
Posts: 548
Reputation: 95
Default Re: polygons

Quote:
Originally Posted by Runcias View Post
This works anywhere on map?
YES ^
__________________
NO MORE CODING SAMP :V
JUST PLAYING...
Excel is offline   Reply With Quote
Old 28/06/2014, 12:36 PM   #8
Jankingston
Banned
 
Join Date: Oct 2013
Location: New York, Albany.
Posts: 398
Reputation: 30
Default Re: polygons

Good job. This is very useful.
Jankingston is offline   Reply With Quote
Old 29/06/2014, 02:14 AM   #9
Seregamil1
Big Clucker
 
Join Date: Nov 2012
Location: Russia, Altay
Posts: 132
Reputation: 45
Default Re: polygons

Thank you all.
Seregamil1 is offline   Reply With Quote
Old 29/06/2014, 09:32 AM   #10
Seregamil1
Big Clucker
 
Join Date: Nov 2012
Location: Russia, Altay
Posts: 132
Reputation: 45
Default Re: polygons

Quote:
Originally Posted by Runcias View Post
This works anywhere on map?
Yes, you are right.
Seregamil1 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] polygons Seregamil1 Релизы/Releases 6 06/11/2014 06:47 AM
Polygons on models PixeledNinja Client Support 12 20/05/2012 09:44 PM


All times are GMT. The time now is 08:08 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.