SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 06/02/2013, 03:47 PM   #1
shady001
Big Clucker
 
Join Date: Sep 2011
Location: Europe
Posts: 89
Reputation: 0
Default GangZones help.

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]);
    }
shady001 is offline   Reply With Quote
Old 06/02/2013, 04:27 PM   #2
bensmart469
Huge Clucker
 
Join Date: Apr 2012
Posts: 298
Reputation: 25
Default Re: GangZones help.

can i ask, why is there gangzonehideforplayer when the player dies? it seems useless to me
__________________
bensmart469 is offline   Reply With Quote
Old 06/02/2013, 04:43 PM   #3
shady001
Big Clucker
 
Join Date: Sep 2011
Location: Europe
Posts: 89
Reputation: 0
Default Re: GangZones help.

Because i taught that it is because is shows gang zone over and over again on player spawn , but it is not from that ...
shady001 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] GangZones Trawltrawl Tutorials 7 09/04/2012 06:41 PM
need some help with gangzones... niels44 Scripting Help 5 21/12/2011 02:31 PM
Gangzones Admigo Help Archive 1 28/05/2011 08:12 AM
GangZones. Carlton Help Archive 8 06/07/2010 02:26 PM


All times are GMT. The time now is 04:50 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.