PDA

View Full Version : GangZones help.


shady001
06/02/2013, 03:47 PM
I don't know how to explain it so i'll just put some pictures.
http://postimage.org/gallery/52higfpo/57ddac49/

So it is doing this when i rotate camera , i don't know what to do ; here's the code:

//OnGameModeInit
for(new i=1;i<51;i++)
{
turf[i] = GangZoneCreate(TeritoriuInfo[i][tPozX1],TeritoriuInfo[i][tPozY1],TeritoriuInfo[i][tPozX2],TeritoriuInfo[i][tPozY2]);
}
//onplayerspawn
for(new g = 0; g < 51;g++)
{
if(TeritoriuInfo[g][tOwned] == 5)
{
GangZoneShowForPlayer(playerid,turf[g],0x3E3535FF);
}
if(TeritoriuInfo[g][tOwned] == 6)
{
GangZoneShowForPlayer(playerid,turf[g],0x33AA33AA);
}
if(TeritoriuInfo[g][tOwned] == 12)
{
GangZoneShowForPlayer(playerid,turf[g],0x9900FFFF);
}
if(TeritoriuInfo[g][tOwned] == 13)
{
GangZoneShowForPlayer(playerid,turf[g],0x663300FF);
}
if(TeritoriuInfo[g][tOwned] == 14)
{
GangZoneShowForPlayer(playerid,turf[g],0xFFD700FF);
}
if(TeritoriuInfo[g][tOwned] == 15)
{
GangZoneShowForPlayer(playerid,turf[g],0x5E767EFF);
}
}
//OnPlayerDeath & OnPlayerDisconnect
for(new g = 0; g < 51; g++)
{
GangZoneHideForPlayer(playerid,turf[g]);
}

bensmart469
06/02/2013, 04:27 PM
can i ask, why is there gangzonehideforplayer when the player dies? it seems useless to me

shady001
06/02/2013, 04:43 PM
Because i taught that it is because is shows gang zone over and over again on player spawn , but it is not from that ...