GangZones help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GangZones help. (
/showthread.php?tid=413730)
GangZones help. -
shady001 - 06.02.2013
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:
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]);
}
Re: GangZones help. -
bensmart469 - 06.02.2013
can i ask, why is there gangzonehideforplayer when the player dies? it seems useless to me
Re: GangZones help. -
shady001 - 06.02.2013
Because i taught that it is because is shows gang zone over and over again on player spawn , but it is not from that ...