03.04.2010, 04:44
(
Последний раз редактировалось StrickenKid; 09.06.2011 в 21:36.
Причина: Updated Links
)
SA:MP Zones PHP
AboutYou all may know the SA:MP zones pawno include. Well I have transformed it into a PHP version, you can now use this PHP class for your online maps, and anything else you find it useful for. This PHP class comes with two functions; one for 2D and one for 3D.
Functions
- Get2DZone($x, $y);
- Get3DZone($x, $y, $z);
Use
To use this class, simply include the file into the php file you wish and declare a new SAMPZones class instance.
Код:
include( "zones.php" ); $zones = new SAMPZones();
Код:
$2d_zone_name = $zones->Get2DZone($x_var, $y_var); $3d_zone_name = $zones->Get3DZone($x_var, $y_var, $z_var);
You can test the class here.
Download
http://www.strickenkid.com/php_zones/download.php
Thanks To
- Blacklite - big help!
- Woet - [22:10] <@Woet> why am I not in the credits, StrickenKid
- Whoever created the original SA:MP zones include