Capture zones -
ethhackerman - 15.05.2013
hi , i made a capture zones , and i got no errors , but when i enter the game i can't see the gang zone only the dynamic checkpoint,
here is my code
pawn Код:
OnPlayerSpawn, and i try it onplayerconnect and not worked
if(tCheck[BigEar] == -1) return GangZoneShowForPlayer(playerid,Zone[BigEar],0xFFFFFFAA);
else if(tCheck[BigEar] == TEAM_MADTH) return GangZoneShowForPlayer(playerid,Zone[BigEar],0x008040FF);
else if(tCheck[BigEar] == TEAM_ARABIA) return GangZoneShowForPlayer(playerid,Zone[BigEar],COLOR_YELLOW);
else if(tCheck[BigEar] == TEAM_RUSSIA) return GangZoneShowForPlayer(playerid,Zone[BigEar],0x4014D190);
else if(tCheck[BigEar] == TEAM_USA) return GangZoneShowForPlayer(playerid,Zone[BigEar],COLOR_LIGHTGREEN);
else if(tCheck[BigEar] == TEAM_GERMAN) return GangZoneShowForPlayer(playerid,Zone[BigEar],COLOR_BRIGHTRED);
else if(tCheck[BigEar] == TEAM_CHINA) return GangZoneShowForPlayer(playerid,Zone[BigEar],COLOR_BROWNLIGHT);
else if(tCheck[BigEar] == TEAM_BRAZIL) return GangZoneShowForPlayer(playerid,Zone[BigEar],0xFF808041);
else if(tCheck[BigEar] == TEAM_UNITED) return GangZoneShowForPlayer(playerid,Zone[BigEar],0xFFFFFFFF);
else if(tCheck[BigEar] == TEAM_JAPAN) return GangZoneShowForPlayer(playerid,Zone[BigEar],0x80800085);
else if(tCheck[BigEar] == TEAM_NETHERLANDS) return GangZoneShowForPlayer(playerid,Zone[BigEar],0x10DCAEA5);
AW: Capture zones -
HurtLocker - 15.05.2013
What is the BigEar element? Cause I have some zones but their variable they are assigned on is just a word like
wargang=GangZoneCreate
Re: Capture zones -
ethhackerman - 15.05.2013
problem is solved , but now only one zone is showed and i got more than one zone ,
onplayerconnect
pawn Код:
if(tCheck[BigEar] == TEAM_NONE) return GangZoneShowForPlayer(playerid,Zone[BigEar],-66);
else if(tCheck[BigEar] == TEAM_MADTH) return GangZoneShowForPlayer(playerid,Zone[BigEar],0x008040FF);
else if(tCheck[BigEar] == TEAM_ARABIA) return GangZoneShowForPlayer(playerid,Zone[BigEar],COLOR_YELLOW);
else if(tCheck[BigEar] == TEAM_RUSSIA) return GangZoneShowForPlayer(playerid,Zone[BigEar],0x4014D190);
else if(tCheck[BigEar] == TEAM_USA) return GangZoneShowForPlayer(playerid,Zone[BigEar],COLOR_LIGHTGREEN);
else if(tCheck[BigEar] == TEAM_GERMAN) return GangZoneShowForPlayer(playerid,Zone[BigEar],COLOR_BRIGHTRED);
else if(tCheck[BigEar] == TEAM_CHINA) return GangZoneShowForPlayer(playerid,Zone[BigEar],COLOR_BROWNLIGHT);
else if(tCheck[BigEar] == TEAM_BRAZIL) return GangZoneShowForPlayer(playerid,Zone[BigEar],0xFF808041);
else if(tCheck[BigEar] == TEAM_UNITED) return GangZoneShowForPlayer(playerid,Zone[BigEar],0xFFFFFFFF);
else if(tCheck[BigEar] == TEAM_JAPAN) return GangZoneShowForPlayer(playerid,Zone[BigEar],0x80800085);
else if(tCheck[BigEar] == TEAM_NETHERLANDS) return GangZoneShowForPlayer(playerid,Zone[BigEar],0x10DCAEA5);
//snake
if(tCheck[SNAKE] == TEAM_NONE) return GangZoneShowForPlayer(playerid,Zone[SNAKE],-66);
else if(tCheck[SNAKE] == TEAM_MADTH) return GangZoneShowForPlayer(playerid,Zone[SNAKE],0x008040FF);
else if(tCheck[SNAKE] == TEAM_ARABIA) return GangZoneShowForPlayer(playerid,Zone[SNAKE],COLOR_YELLOW);
else if(tCheck[SNAKE] == TEAM_RUSSIA) return GangZoneShowForPlayer(playerid,Zone[SNAKE],0x4014D190);
else if(tCheck[SNAKE] == TEAM_USA) return GangZoneShowForPlayer(playerid,Zone[SNAKE],COLOR_LIGHTGREEN);
else if(tCheck[SNAKE] == TEAM_GERMAN) return GangZoneShowForPlayer(playerid,Zone[SNAKE],COLOR_BRIGHTRED);
else if(tCheck[SNAKE] == TEAM_CHINA) return GangZoneShowForPlayer(playerid,Zone[SNAKE],COLOR_BROWNLIGHT);
else if(tCheck[SNAKE] == TEAM_BRAZIL) return GangZoneShowForPlayer(playerid,Zone[SNAKE],0xFF808041);
else if(tCheck[SNAKE] == TEAM_UNITED) return GangZoneShowForPlayer(playerid,Zone[SNAKE],0xFFFFFFFF);
else if(tCheck[SNAKE] == TEAM_JAPAN) return GangZoneShowForPlayer(playerid,Zone[SNAKE],0x80800085);
else if(tCheck[SNAKE] == TEAM_NETHERLANDS) return GangZoneShowForPlayer(playerid,Zone[SNAKE],0x10DCAEA5);
//oil factory
if(tCheck[OIL] == TEAM_NONE) return GangZoneShowForPlayer(playerid,Zone[OIL],-66);
else if(tCheck[OIL] == TEAM_MADTH) return GangZoneShowForPlayer(playerid,Zone[OIL],0x008040FF);
else if(tCheck[OIL] == TEAM_ARABIA) return GangZoneShowForPlayer(playerid,Zone[OIL],COLOR_YELLOW);
else if(tCheck[OIL] == TEAM_RUSSIA) return GangZoneShowForPlayer(playerid,Zone[OIL],0x4014D190);
else if(tCheck[OIL] == TEAM_USA) return GangZoneShowForPlayer(playerid,Zone[OIL],COLOR_LIGHTGREEN);
else if(tCheck[OIL] == TEAM_GERMAN) return GangZoneShowForPlayer(playerid,Zone[OIL],COLOR_BRIGHTRED);
else if(tCheck[OIL] == TEAM_CHINA) return GangZoneShowForPlayer(playerid,Zone[OIL],COLOR_BROWNLIGHT);
else if(tCheck[OIL] == TEAM_BRAZIL) return GangZoneShowForPlayer(playerid,Zone[OIL],0xFF808041);
else if(tCheck[OIL] == TEAM_UNITED) return GangZoneShowForPlayer(playerid,Zone[OIL],0xFFFFFFFF);
else if(tCheck[OIL] == TEAM_JAPAN) return GangZoneShowForPlayer(playerid,Zone[OIL],0x80800085);
else if(tCheck[OIL] == TEAM_NETHERLANDS) return GangZoneShowForPlayer(playerid,Zone[OIL],0x10DCAEA5);
at the up
pawn Код:
#define BigEar 0
#define SNAKE 1
#define OIL 3
//ongamemodeinit
CP[BigEar] = CreateDynamicCP(-341.5838,1581.1833,76.2363, 2, -1, -1, -1, 100.0);
Zone[BigEar] = GangZoneCreate(-437.5,1513.671875,-244.140625,1636.71875);
CP[SNAKE] = CreateDynamicCP(-36.5458, 2347.6426, 24.1406,3, -1,-1,-1,100.0);
Zone[SNAKE] = GangZoneCreate(-62.5000000000005,2318.359375,23.4375,2390.625);
CP[OIL] = CreateDynamicCP(221.0856,1422.6615,10.5859,3, -1,-1,-1,100.0);
Zone[OIL] = GangZoneCreate(95.703125,1339.84375,287.109375,1484.375);
UnderAttack[OIL] = -1;
tCheck[OIL] = TEAM_NONE;
UnderAttack[BigEar] = -1;
tCheck[BigEar] = TEAM_NONE;
UnderAttack[SNAKE] = -1;
tCheck[SNAKE] = TEAM_NONE;
but , when i capture the zone snake and oil , it's color changed , but it don't show the gangzone if someone didn't capture it
Re: Capture zones -
ethhackerman - 15.05.2013
wtf guys? is it really hard ?
Re: Capture zones -
ethhackerman - 16.05.2013
wow it was easy , delete return , and no one helped me with this easy thing :/ thanks guys