new gangzone; public OnGameModeInit() { gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319); return 1; } public OnPlayerSpawn(playerid) { if(IsPlayerAdmin(playerid)) GangZoneShowForAll(gangzone,COLOR_RED); return 1; } |
so who cnows how to get coordinates of minx The X coordinate for the west side of the gangzone. miny The Y coordinate for the south side of the gangzone. maxx The X coordinate for the east side of the gangzone. maxy The Y coordinate for the north side of the gangzone. |
#include <a_samp> #define COLOR_BLACK 0x000000FF #define COLOR_GREY 0xC0C0C0FF #define COLOR_BLUE 0x8000FFFF new road; new land; new airport; public OnFilterScriptInit() { road = GangZoneCreate(2280.25, 625.24, 2307.88, 524.26), road = GangZoneCreate(2307.88, 524.26, 3508.71, 481.54); road = GangZoneCreate(3508.71, 481.54, 3495.68, 374.37); road = GangZoneCreate(3495.68, 374.37, 3417.17, 386.35); road = GangZoneCreate(3417.17, 386.35, 3435.61, 475.81); road = GangZoneCreate(3506.71, 437.89, 4587.14, 349.29); road = GangZoneCreate(4596.95, 426.22, 4472.13, -735.40); road = GangZoneCreate(4472.13, -735.40, 4531.12, -729.48); road = GangZoneCreate(4538.15, -638.00, 4455.20, -1358.26); road = GangZoneCreate(4455.20, -1358.26, 4586.10, -1368.87); road = GangZoneCreate(4538.15, -683.00, 4406.49, -636.52); road = GangZoneCreate(4422.23, -625.67, 4392.05, -751.48); road = GangZoneCreate(4411.07, -738.89, 4346.64, -742.86); road = GangZoneCreate(4346.64, -742.86, 4366.38, -664.26); road = GangZoneCreate(4366.38, -664.26, 4417.00, -682.64); land = GangZoneCreate(3406.50, 320.17, 3556.21, 549.72);// 1ST ISLAND// land = GangZoneCreate(4326.90, -559.85, 4458.38, -815.13);//3 ISLAND// land = GangZoneCreate(4458.38, -815.13, 4890.20, -575.23);//3 ISLAND// land = GangZoneCreate(2400.98, 513.52, 2347.46, 430.21);//LV FUEL TANK TO IS// this game zone shown airport = GangZoneCreate(4603.69, -622.91, 5115.83, -709.07); airport = GangZoneCreate(4679.81, -729.30, 5103.00, -815.06); and this game zone shown return 1; } public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, road, COLOR_BLACK); GangZoneShowForPlayer(playerid, land, COLOR_GREY); GangZoneShowForPlayer(playerid, airport, COLOR_BLUE); return 1; } |