06.02.2013, 15:47
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:
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:
pawn Code:
//OnGameModeInit
for(new i=1;i<51;i++)
{
turf[i] = GangZoneCreate(TeritoriuInfo[i][tPozX1],TeritoriuInfo[i][tPozY1],TeritoriuInfo[i][tPozX2],TeritoriuInfo[i][tPozY2]);
}
pawn Code:
//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);
}
}
pawn Code:
//OnPlayerDeath & OnPlayerDisconnect
for(new g = 0; g < 51; g++)
{
GangZoneHideForPlayer(playerid,turf[g]);
}