Gang Zone help.
#1

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); 
Reply
#2

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

it adds zone only.
Reply
#4

its called Gang Zone. not only zone...

GangZoneCreate(...);

so at first tell us what exactly u want...
Reply
#5

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.
Reply
#6

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

try this include. its really simple.
Reply
#7

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.
Reply
#8

alot of game mods using capturable zones here - search
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)