SA-MP Forums Archive
Gang Zone 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: Gang Zone help. (/showthread.php?tid=430792)



Gang Zone help. - TommyBro - 15.04.2013

Would anyone like to help me with adding gang zones for my TDM GM?
I start to think that i am realy stupid, because cant understand these tuttorials that i have found.
Pls help me

My teams looks like:

PHP код:
#define TEAM_1 1
#define TEAM_2 2
#define TEAM_3 3
#define TEAM_4 4
#define TEAM_5 5
#define TEAM_6 6
#define TEAM_7 7
    
if(classid == || classid == || classid == 2){
      
gTeam[playerid] = TEAM_1;
      
GameTextForPlayer(playerid"Grove"10003);}
    else if(
classid == || classid == || classid == 5){
      
gTeam[playerid] = TEAM_2;
      
GameTextForPlayer(playerid"Vagos"10003);}
    else if(
classid == || classid == || classid == 8){
      
gTeam[playerid] = TEAM_3;
      
GameTextForPlayer(playerid"Ballas"10003);}
    else if(
classid == || classid == 10 || classid == 11){
      
gTeam[playerid] = TEAM_4;
      
GameTextForPlayer(playerid"Aztecas"10003);}
    else if(
classid == 12 || classid == 13 || classid == 14){
      
gTeam[playerid] = TEAM_5;
      
GameTextForPlayer(playerid"Rifa"10003);}
    else if(
classid == 15 || classid == 16 || classid == 17 || classid == 18 || classid == 19){
      
gTeam[playerid] = TEAM_6;
      
GameTextForPlayer(playerid"Bomje Gang"10003);}
    else if(
classid == 20 || classid == 21 || classid == 22 || classid == 23){
      
gTeam[playerid] = TEAM_7;
      
GameTextForPlayer(playerid"Whores"10003);}
    
SetPlayerInterior(playerid,0);
    if(
gTeam[playerid] == TEAM_1)
       
SetPlayerColor(playerid0x008000AA);
    else if(
gTeam[playerid] == TEAM_2)
       
SetPlayerColor(playerid0xFFFF00AA);
    else if(
gTeam[playerid] == TEAM_3)
       
SetPlayerColor(playerid0x800080AA);
    else if(
gTeam[playerid] == TEAM_4)
       
SetPlayerColor(playerid0x00FFFFAA);
    else if(
gTeam[playerid] == TEAM_5)
       
SetPlayerColor(playerid0x8080FFAA);
    else if(
gTeam[playerid] == TEAM_6)
       
SetPlayerColor(playerid0xFFFFFFAA);
    else if(
gTeam[playerid] == TEAM_7)
       
SetPlayerColor(playerid0xFF0080AA); 



Re: Gang Zone help. - Om3n - 15.04.2013

try this: https://sampforum.blast.hk/showthread.php?tid=120586


Re: Gang Zone help. - TommyBro - 15.04.2013

it adds zone only.


Re: Gang Zone help. - Om3n - 15.04.2013

its called Gang Zone. not only zone...

GangZoneCreate(...);

so at first tell us what exactly u want...


Re: Gang Zone help. - TommyBro - 15.04.2013

Quote:
Originally Posted by Om3n
Посмотреть сообщение
its called Gang Zone. not only zone...

GangZoneCreate(...);

so at first tell us what exactly u want...
Im sory, i am bad in english.
I need to add gang zone, and commands for teams to capture it.


Re: Gang Zone help. - Om3n - 15.04.2013

http://forum.sa-mp.com/showthread.ph...ght=gang+zones

try this include. its really simple.


Re: Gang Zone help. - TommyBro - 15.04.2013

Quote:
Originally Posted by Om3n
Посмотреть сообщение
http://forum.sa-mp.com/showthread.ph...ght=gang+zones

try this include. its really simple.
Link for download is not working.


Re : Gang Zone help. - DaTa[X] - 15.04.2013

alot of game mods using capturable zones here - search