12.07.2014, 14:35
Hi all, today i want to create an gangzone system but i have this problem.
i created the names of gangzones
after i create the gangzones
and the last step i create an command wich show me the gang zone
but the effect is wired, look -> http://i.imgur.com/kdYVqbB.jpg
This 10 gangzone cover all los santos.
i created the names of gangzones
Код:
// gang zone new GZ_ZONE1; new GZ_ZONE2; new GZ_ZONE3; new GZ_ZONE4; new GZ_ZONE5; new GZ_ZONE6; new GZ_ZONE7; new GZ_ZONE8; new GZ_ZONE9; new GZ_ZONE10; ///
Код:
GZ_ZONE1 = GangZoneCreate(23.4375,-2121.09375,943.359375,-1394.53125); GZ_ZONE2 = GangZoneCreate(943.359375,-2865.234375,1875,-1792.96875); GZ_ZONE3 = GangZoneCreate(29.296875,-1388.671875,925.78125,-697.265625); GZ_ZONE4 = GangZoneCreate(925.78125,-1412.109375,1582.03125,-714.84375); GZ_ZONE5 = GangZoneCreate(943.359375,-1792.96875,1851.5625,-1417.96875); GZ_ZONE6 = GangZoneCreate(1582.03125,-1406.25,2250,-714.84375); GZ_ZONE7 = GangZoneCreate(1898.4375,-2830.078125,2496.09375,-1810.546875); GZ_ZONE8 = GangZoneCreate(2255.859375,-1412.109375,2982.421875,-720.703125); GZ_ZONE9 = GangZoneCreate(1863.28125,-1839.84375,2988.28125,-1417.96875); GZ_ZONE10 = GangZoneCreate(2513.671875,-2777.34375,2976.5625,-1845.703125);
Код:
CMD:zonewar(playerid, params[]) { new item[MAX_PLAYERS]; if(sscanf(params,"s[10]",item[playerid])) return SendClientMessage(playerid, 0xFF0000FF,"Comanda gresita. Corect este: /zonewar [on/off]"); if (strcmp("on", item[playerid], true, 2) == 0) { GangZoneShowForPlayer(playerid, GZ_ZONE1, 0x00FFFFFF); GangZoneShowForPlayer(playerid, GZ_ZONE2, 0x71C7FFFF); GangZoneShowForPlayer(playerid, GZ_ZONE3, 0xFFFF8CFF); GangZoneShowForPlayer(playerid, GZ_ZONE4, 0xFFB78CFF); GangZoneShowForPlayer(playerid, GZ_ZONE5, 0xFFB7DDFF); GangZoneShowForPlayer(playerid, GZ_ZONE6, 0x67B7DDFF); GangZoneShowForPlayer(playerid, GZ_ZONE7, 0x67B767FF); GangZoneShowForPlayer(playerid, GZ_ZONE8, 0xE29767FF); GangZoneShowForPlayer(playerid, GZ_ZONE9, 0xE256C1FF); GangZoneShowForPlayer(playerid, GZ_ZONE10, 0xA356C1FF); } else if (strcmp("off", item[playerid], true, 3) == 0) { GangZoneHideForPlayer(playerid,GZ_ZONE1); GangZoneHideForPlayer(playerid,GZ_ZONE2); GangZoneHideForPlayer(playerid,GZ_ZONE3); GangZoneHideForPlayer(playerid,GZ_ZONE4); GangZoneHideForPlayer(playerid,GZ_ZONE5); GangZoneHideForPlayer(playerid,GZ_ZONE6); GangZoneHideForPlayer(playerid,GZ_ZONE7); GangZoneHideForPlayer(playerid,GZ_ZONE8); GangZoneHideForPlayer(playerid,GZ_ZONE9); GangZoneHideForPlayer(playerid,GZ_ZONE10); } return 1; }
This 10 gangzone cover all los santos.