[Ajuda] GangZone
#1

tentei colocar as gangs do meu GM no FS mas ta dando esses erros:
pawn Код:
C:\Users\Re\Desktop\Gangs.pwn(250) : error 017: undefined symbol "gangteam"
C:\Users\Re\Desktop\Gangs.pwn(250) : warning 215: expression has no effect
C:\Users\Re\Desktop\Gangs.pwn(250) : error 001: expected token: ";", but found "]"
C:\Users\Re\Desktop\Gangs.pwn(250) : error 029: invalid expression, assumed zero
C:\Users\Re\Desktop\Gangs.pwn(250) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
FS:
pawn Код:
#include <a_samp>
#include <cpstream>
#include <Dini>
#include <dudb>

#pragma dynamic 145000
#pragma tabsize 0
//PROGRMS USER
#pragma unused ret_memcpy

#if defined FILTERSCRIPT

//CORES
#define COLOR_GREEN         0x33AA33AA //VERDE
#define COLOR_DARKGREEN     0x006400 //VERDE ESCURO
#define COLOR_YELLOW        0x88FF9FAA //AMARELO
#define COLOR_PINK          0xFF66FFAA //ROSA
#define COLOR_WHITE         0xFFFFFFAA //BRANCO
#define COLOR_RED           0xAA3333AA //VERMELHO
#define COLOR_DARKRED       0x660000AA //VERMELHO ESCURO
#define COLOR_BLACK         0x00000000 //Preto
#define COLOR_ORANGE        0xFF9900AA //Laranja
#define COLOR_LEMON         0xB4FC0A96 //Verde Limao
#define COR_ROXO            0x40008096
#define COR_VERDECLARO      0x00C4C4B7
#define COR_AMARELOCLARO    0xFEEE66AA
#define COLOR_RED           0xAA3333AA
#define Verde               0x33AA33AA
#define COR_BRANCO          0xFFFFFFAA
#define COLOR_WHITE         0xFFFFFFAA
#define vermelho            0xFF0000AA
#define laranja             0xFFA500AA
#define COLOR_GREEN         0x33AA33AA
#define COLOR_YELLOW        0x88FF9FAA
#define YELLOW              0x88FF9FAA
#define HOMER               0xFF0000AA
#define VERDE_OLIVA         0xADFF2FAA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_DICA 0xFFB200FF
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0x88FF9FAA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_GMOB 0xF6000000
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0xE0FFFFAA
#define COLOR_REDRED       0xAA3333AA

#pragma unused cpgate,cpmilitares,cpplayboys,cpnoias,cpfrangos,cpagentes,cpchineses,cpcowboys,cpbozo,cpgrove,cpballas,cppantaneiros,cprockeiros,cpmendigos
    return 1;
}

#define BRANCO 0xFFFFFFAA
#define VERMELHO 0x88FF9FAA //0xFF0000AA

//FORWARDS//
forward ZoneCheckpointChecker(playerid);
forward OlhaAeQuemTeMatou(playerid);
forward UpperToLower(text[]);
forward ABroadCast(COLOR,const string[],level);
forward FinalizaX1(playerid);
forward TimerDuelos(idduelo);
forward CheckarTeam(playerid);
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

//new Text:InfoText[MAX_PLAYERS];

enum pInfo
{
    pSematou,
    pMatou,
    pMorreu,
    pDominou,
    pTeamkill,
    pGrana,
    Ganhoux1,
    Perdeux1,
};

//ENUMS//
new olhamane[MAX_PLAYERS];
new gangteam[MAX_PLAYERS];
new ccolete[MAX_PLAYERS];
new steleporte[MAX_PLAYERS];
new status[MAX_PLAYERS];
new psht[MAX_PLAYERS];
new pgangnames[][] =
{
    {"Gates"},
    {"Militares"},
    {"Playboys"},
    {"Noias"},
    {"Frangos"},
    {"Agentes"},
    {"Chineses"},
    {"Cowboys"},
    {"Bozo James"},
    {"Grove"},
    {"Ballas"},
    {"Pantaneiros"},
    {"Rockeiros"},
    {"Mendigos"}
};
new pgang[MAX_PLAYERS][17];


new gzcolor[14] =
{
0xFF9900AA,0x0000BBAA,0xAA3333AA,0x1E90FFAA,0xFF0000AA,0x778899AA,0xFF66FFAA,0x8B4513AA,0x33AA33AA,0x0D5800AA,0x800080AA,0xFEEE66AA,0x7D03FFAA,0x00C4C4B7
};
new gzcolorteam[14] =
{
0xFF9900AA,0x0000BBAA,0xAA3333AA,0x1E90FFAA,0xFF0000AA,0x778899AA,0xFF66FFAA,0x8B4513AA,0x33AA33AA,0x0D5800AA,0x800080AA,0xFEEE66AA,0x7D03FFAA,0x00C4C4B7
};
new cpzone[MAX_PLAYERS][15];
new lastcp[MAX_PLAYERS];
new Gate;
new Militares;
new Playboys;
new Noias;
new Frangos;
new Agentes;
new Chineses;
new Cowboys;
new Bozo;
new Grove;
new Ballas;
new Pantaneiros;
new Rockeiros;
new Mendigos;
new cpgate,cpmilitares,cpplayboys,cpnoias,cpfrangos,cpagentes,cpchineses,cpcowboys,cpbozo,cpgrove,cpballas,cppantaneiros,cprockeiros,cpmendigos;

new Menu:DUELOSTIPOX1;
new Dominat[MAX_PLAYERS];
new Matando[MAX_PLAYERS];

public OnFilterScriptInit()
{

    //skin
    AddPlayerClass(285,-1615.0461,681.2841,7.1875,176.7815,0,0,0,0,0,0); //Gate
    AddPlayerClass(287,-1323.7145,498.9360,11.1953,179.9288,0,0,0,0,0,0); // Militares

    AddPlayerClass(93,-2695.0476,931.9020,67.2025,179.1115,0,0,0,0,0,0); //playboys
    AddPlayerClass(124,-2695.0476,931.9020,67.2025,179.1115,0,0,0,0,0,0); //playboys

    AddPlayerClass(29,-2126.3118,239.9344,37.3501,281.7839,0,0,0,0,0,0); //noias
    AddPlayerClass(195,-2126.3118,239.9344,37.3501,281.7839,0,0,0,0,0,0); //noias

    AddPlayerClass(167,-2658.8113,261.0943,4.6328,177.5265,0,0,0,0,0,0); // frangos

    AddPlayerClass(163,-1821.6117,1052.7548,46.0781,1.8259,0,0,0,0,0,0); // agentes
    AddPlayerClass(141,-1821.6117,1052.7548,46.0781,1.8259,0,0,0,0,0,0); // agentes

    AddPlayerClass(169,-2181.8726,714.4974,53.8916,185.6942,0,0,0,0,0,0); //chineses
    AddPlayerClass(123,-2181.8726,714.4974,53.8916,185.6942,0,0,0,0,0,0); //chineses

    AddPlayerClass(162, -688.0751,945.8761,13.0313,354.2151, 0, 0, 0, 0, 0, 0);//CowBoys

    AddPlayerClass(264,-2195.7166,1052.6973,88.3125,89.9394,0,0,0,0,0,0);//Bozo

    AddPlayerClass(271,-2626.1108,1403.1508,7.1016,171.4507,0,0,0,0,0,0); //grove
    AddPlayerClass(269,-2626.1108,1403.1508,7.1016,171.4507,0,0,0,0,0,0); //grove
    AddPlayerClass(270,-2626.1108,1403.1508,7.1016,171.4507,0,0,0,0,0,0); //grove

    AddPlayerClass(102,-2649.3235,-282.9137,7.4721,136.9855,0,0,0,0,0,0); //ballas
    AddPlayerClass(103,-2649.3235,-282.9137,7.4721,136.9855,0,0,0,0,0,0); //ballas
    AddPlayerClass(104,-2649.3235,-282.9137,7.4721,136.9855,0,0,0,0,0,0); //ballas

    AddPlayerClass(161,-860.8530,1565.2831,24.6945,262.7767,0,0,0,0,0,0);//pantaneiros
    AddPlayerClass(198,-860.8530,1565.2831,24.6945,262.7767,0,0,0,0,0,0);//pantaneiros

    AddPlayerClass(181,-1666.3236,1050.8975,7.9219,1.6500,0,0,0,0,0,0); // Rockeiros
    AddPlayerClass(183,-1666.3236,1050.8975,7.9219,1.6500,0,0,0,0,0,0); // Rockeiros

    AddPlayerClass(230,-2185.1409,-262.2670,40.7195,267.2708,0,0,0,0,0,0); //Mendigos
    AddPlayerClass(137,-2185.1409,-262.2670,40.7195,267.2708,0,0,0,0,0,0); //Mendigos

    cpgate = CPS_AddCheckpoint(-1615.7535,685.7505,7.1875,2.0,80);
    cpmilitares = CPS_AddCheckpoint(-1351.1074,515.5889,16.5876,2.0,80);
    cpplayboys= CPS_AddCheckpoint(-2694.5210,912.4298,67.5938,2.0,80);
    cpnoias = CPS_AddCheckpoint(-2090.8916,297.4237,40.8177,2.0,80);
    cpfrangos = CPS_AddCheckpoint(-2695.4707,260.2946,4.6328,2.0,80);
    cpagentes = CPS_AddCheckpoint(-1832.6652,1040.3713,46.0883,2.0,80);
    cpchineses = CPS_AddCheckpoint(-2174.1094,632.4207,49.4375,2.0,80);
    cpcowboys = CPS_AddCheckpoint(-683.1976,966.0278,12.1328,2.0,80);
    cpbozo = CPS_AddCheckpoint(-1937.0536,487.4645,31.9688,2.0,80);
    cpgrove = CPS_AddCheckpoint(-2660.0808,1446.0090,41.8359,2.0,80);
    cpballas = CPS_AddCheckpoint(-2648.2065,-317.0257,7.1719,2.0,80);
    cppantaneiros = CPS_AddCheckpoint(-908.1011,1534.3807,25.9141,2.0,80);
    cprockeiros = CPS_AddCheckpoint(-1675.3556,1021.3312,7.9272,2.0,80);
    cpmendigos = CPS_AddCheckpoint(-2143.1921,-262.8111,40.7195,2.0,80);

    Gate = GangZoneCreate(-1715.604980, 579.530151, -1451.604980, 803.530151);
    Militares = GangZoneCreate(-1571.748413, 260.257446, -1219.748413, 540.257446);
    Playboys = GangZoneCreate(-2740.049560, 714.755249, -2524.049560, 1002.755249);
    Noias = GangZoneCreate(-2243.332275, 114.842910, -2003.332275, 314.842895);
    Frangos = GangZoneCreate(-2804.965087, 171.829284, -2604.965087, 467.829284);
    Agentes = GangZoneCreate(-1911.324584, 853.239257, -1767.324584, 1181.239257);
    Chineses = GangZoneCreate(-2372.718505, 570.751464, -2084.718505, 802.751464);
    Cowboys = GangZoneCreate(-872.041381, 762.208435, -512.041381, 1122.208496);
    Bozo = GangZoneCreate(-2273.2217, 1102.2943, -2129.8413, 925.8668);
    Grove = GangZoneCreate(-2811.375488, 1172.196899, -2539.375488, 1508.196899);
    Ballas = GangZoneCreate(-2812.130371, -425.361907, -2524.130371, -217.361907);
    Pantaneiros = GangZoneCreate(-859.8898, 1677.7509, -983.3986, 1367.2961);
    Rockeiros = GangZoneCreate(-1707.03125, 943.359375, -1560.546875, 1187.5);
    Mendigos = GangZoneCreate(-2211.9140625, -292.96875, -1995.1171875, 61.5234375);


public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif


public OnPlayerRequestClass(playerid, classid)
{
 if(!classid)
{
    GameTextForPlayer(playerid,"~n~~r~Gates",2000,3);
    gangteam[playerid] = 0;
    format(pgang[playerid],15,pgangnames[0]);
    SetPlayerColor(playerid,0xFF9900AA);
}
  else if(classid == 1)
{
    GameTextForPlayer(playerid,"~n~~r~Militares",2000,3);
    gangteam[playerid] = 1;
    format(pgang[playerid],15,pgangnames[1]);
    SetPlayerColor(playerid,0x0000BBAA);
}
   else if(classid == 2)
{
    GameTextForPlayer(playerid,"~n~~r~PlayBoys",2000,3);
    gangteam[playerid] = 2;
    format(pgang[playerid],15,pgangnames[2]);
    SetPlayerColor(playerid,0xAA3333AA);
}
   else if(classid == 3)
{
    GameTextForPlayer(playerid,"~n~~r~PlayBoys",2000,3);
    gangteam[playerid] = 2;
    format(pgang[playerid],15,pgangnames[2]);
    SetPlayerColor(playerid,0xAA3333AA);
}
 else if(classid == 4)
{
    GameTextForPlayer(playerid,"~n~~r~Noias",2000,3);
    gangteam[playerid] = 3;
    format(pgang[playerid],15,pgangnames[3]);
    SetPlayerColor(playerid,0x1E90FFAA);
}
   else if(classid == 5)
{
    GameTextForPlayer(playerid,"~n~~r~Noias",2000,3);
    gangteam[playerid] = 3;
    format(pgang[playerid],15,pgangnames[3]);
    SetPlayerColor(playerid,0x1E90FFAA);
}

else if(classid == 6)
{
    GameTextForPlayer(playerid,"~n~~r~Frangos",2000,3);
    gangteam[playerid] = 4;
    format(pgang[playerid],15,pgangnames[4]);
    SetPlayerColor(playerid, 0xFF0000AA);
}
  else if(classid == 7)
{
    GameTextForPlayer(playerid,"~n~~r~Agentes",2000,3);
    gangteam[playerid] = 5;
    format(pgang[playerid],15,pgangnames[5]);
    SetPlayerColor(playerid,0x778899AA);

}
   else if(classid == 8)
{
    GameTextForPlayer(playerid,"~n~~r~Agentes",2000,3);
    gangteam[playerid] = 5;
    format(pgang[playerid],15,pgangnames[5]);
    SetPlayerColor(playerid,0x778899AA);

}
   else if(classid == 9)
{
    GameTextForPlayer(playerid,"~n~~r~Chineses",2000,3);
    gangteam[playerid] = 6;
    format(pgang[playerid],15,pgangnames[6]);
    SetPlayerColor(playerid,0xFF66FFAA);
}

   else if(classid == 10)
{
    GameTextForPlayer(playerid,"~n~~r~Chineses",2000,3);
    gangteam[playerid] = 6;
    format(pgang[playerid],15,pgangnames[6]);
    SetPlayerColor(playerid,0xFF66FFAA);
}
   else if(classid == 11)
{
    GameTextForPlayer(playerid,"~n~~r~Cowboys",2000,3);
    gangteam[playerid] = 7;
    format(pgang[playerid],15,pgangnames[7]);
    SetPlayerColor(playerid,0x8B4513AA);
}
  else if(classid == 12)
{
    GameTextForPlayer(playerid,"~n~~r~Bozo James",2000,3);
    gangteam[playerid] = 8;
    format(pgang[playerid],15,pgangnames[8]);
    SetPlayerColor(playerid,0x33AA33AA);
}
  else if(classid == 13)
{
    GameTextForPlayer(playerid,"~n~~r~Groves",2000,3);
    gangteam[playerid] = 9;
    format(pgang[playerid],15,pgangnames[9]);
    SetPlayerColor(playerid,0x0D5800AA);
}
   else if(classid == 14)
{
    GameTextForPlayer(playerid,"~n~~r~Groves",2000,3);
    gangteam[playerid] = 9;
    format(pgang[playerid],15,pgangnames[9]);
    SetPlayerColor(playerid,0x0D5800AA);
}
   else if(classid == 15)
{
    GameTextForPlayer(playerid,"~n~~r~Groves",2000,3);
    gangteam[playerid] = 9;
    format(pgang[playerid],15,pgangnames[9]);
    SetPlayerColor(playerid,0x0D5800AA);
}
 else if(classid == 16)
{
    GameTextForPlayer(playerid,"~n~~r~Ballas",2000,3);
    gangteam[playerid] = 10;
    format(pgang[playerid],15,pgangnames[10]);
    SetPlayerColor(playerid,0x800080AA);
}
   else if(classid == 17)
{
    GameTextForPlayer(playerid,"~n~~r~Ballas",2000,3);
    gangteam[playerid] = 10;
    format(pgang[playerid],15,pgangnames[10]);
    SetPlayerColor(playerid,0x800080AA);
}
   else if(classid == 18)
{
    GameTextForPlayer(playerid,"~n~~r~Ballas",2000,3);
    gangteam[playerid] = 10;
    format(pgang[playerid],15,pgangnames[10]);
    SetPlayerColor(playerid,0x800080AA);
}
   else if(classid == 19)
{
    GameTextForPlayer(playerid,"~n~~r~Pantaneiros",2000,3);
    gangteam[playerid] = 11;
    format(pgang[playerid],15,pgangnames[11]);
    SetPlayerColor(playerid,0xFEEE66AA);
}
   else if(classid == 20)
{
    GameTextForPlayer(playerid,"~n~~r~Pantaneiros",2000,3);
    gangteam[playerid] = 11;
    format(pgang[playerid],15,pgangnames[11]);
    SetPlayerColor(playerid,0xFEEE66AA);
}
   else if(classid == 21)
{
    GameTextForPlayer(playerid,"~n~~r~Rockeiros",2000,3);
    gangteam[playerid] = 12;
    format(pgang[playerid],15,pgangnames[12]);
    SetPlayerColor(playerid,0x40008096);
}
   else if(classid == 22)
{
    GameTextForPlayer(playerid,"~n~~r~Rockeiros",2000,3);
    gangteam[playerid] = 12;
    format(pgang[playerid],15,pgangnames[12]);
    SetPlayerColor(playerid,0x40008096);
}
   else if(classid == 23)
{
    GameTextForPlayer(playerid,"~n~~r~Mendigos",2000,3);
    gangteam[playerid] = 13;
    format(pgang[playerid],15,pgangnames[13]);
    SetPlayerColor(playerid,0x00C4C4B7);
}
   else if(classid == 24)
{
    GameTextForPlayer(playerid,"~n~~r~Mendigos",2000,3);
    gangteam[playerid] = 13;
    format(pgang[playerid],15,pgangnames[13]);
    SetPlayerColor(playerid,0x00C4C4B7);
}
    if(-6 != classid)
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerInterior(playerid, 17);
        SetPlayerPos(playerid, 489.4576, -15.1996, 1000.6796);
        SetPlayerCameraPos(playerid, 484.9201, -11.7566, 1000.6796);
        SetPlayerCameraLookAt(playerid, 489.4576, -15.1996, 1000.6796);
        SetPlayerFacingAngle(playerid, 51.5555);
        ApplyAnimation(playerid, "Dancing", "Dan_Loop_A", 5.0, 1, 0, 0, 0, 0);
    }

return 1;
}

public OnPlayerConnect(playerid)
{
    GangZoneShowForPlayer(playerid, Gate, gzcolor[0]);
    GangZoneShowForPlayer(playerid, Militares, gzcolor[1]);
    GangZoneShowForPlayer(playerid, Playboys, gzcolor[2]);
    GangZoneShowForPlayer(playerid, Noias, gzcolor[3]);
    GangZoneShowForPlayer(playerid, Frangos, gzcolor[4]);
    GangZoneShowForPlayer(playerid, Agentes, gzcolor[5]);
    GangZoneShowForPlayer(playerid, Chineses, gzcolor[6]);
    GangZoneShowForPlayer(playerid, Cowboys, gzcolor[7]);
    GangZoneShowForPlayer(playerid, Bozo, gzcolor[8]);
    GangZoneShowForPlayer(playerid, Grove, gzcolor[9]);
    GangZoneShowForPlayer(playerid, Ballas, gzcolor[10]);
    GangZoneShowForPlayer(playerid, Pantaneiros, gzcolor[11]);
    GangZoneShowForPlayer(playerid, Rockeiros, gzcolor[12]);
    GangZoneShowForPlayer(playerid, Mendigos, gzcolor[13]);
    status[playerid] = 0;
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{

 if(gangteam[playerid] == 0)
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 27, 50);
    GivePlayerWeapon(playerid, 29, 50);
    GivePlayerWeapon(playerid, 31, 100);
    GivePlayerWeapon(playerid, 34, 50);
    GivePlayerWeapon(playerid, 41, 100);
    SetPlayerTeam(playerid,0);
    }
    if(gangteam[playerid] == 1)
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 16, 16);
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 25, 50);
    GivePlayerWeapon(playerid, 29, 50);
    GivePlayerWeapon(playerid, 31, 100);
    GivePlayerWeapon(playerid, 34, 50);
    GivePlayerWeapon(playerid, 41, 100);
    SetPlayerTeam(playerid,1);
    }
    if(gangteam[playerid] == 2)
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 26, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 31, 100);
    GivePlayerWeapon(playerid, 30, 50);
    SetPlayerTeam(playerid,2);
    }
    if(gangteam[playerid] == 3)
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 29, 150);
    GivePlayerWeapon(playerid, 25, 150);
    GivePlayerWeapon(playerid, 29, 50);
    GivePlayerWeapon(playerid, 31, 100);
    GivePlayerWeapon(playerid, 34, 50);
    GivePlayerWeapon(playerid, 41, 100);
    SetPlayerTeam(playerid,3);
    }
    if(gangteam[playerid] == 4)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 26, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 31, 100);
    GivePlayerWeapon(playerid, 30, 50);
    SetPlayerTeam(playerid,4);
    }
    if(gangteam[playerid] == 5)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 25, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 30, 100);
    GivePlayerWeapon(playerid, 16, 10);
    SetPlayerTeam(playerid,5);
    }
    if(gangteam[playerid] == 6)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 26, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 30, 100);
    GivePlayerWeapon(playerid, 16, 10);
    GivePlayerWeapon(playerid, 34, 30);
    SetPlayerTeam(playerid,6);
    }
    if(gangteam[playerid] == 7)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 26, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 30, 100);
    GivePlayerWeapon(playerid, 16, 10);
    GivePlayerWeapon(playerid, 33, 100);
    SetPlayerTeam(playerid,7);
    }
    if(gangteam[playerid] == 8)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 27, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 30, 100);
    GivePlayerWeapon(playerid, 16, 10);
    GivePlayerWeapon(playerid, 34, 30);
    SetPlayerTeam(playerid,8);
    }
    if(gangteam[playerid] == 9)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 25, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 30, 100);
    GivePlayerWeapon(playerid, 16, 10);
    GivePlayerWeapon(playerid, 34, 30);
    SetPlayerTeam(playerid,9);
    }
    if(gangteam[playerid] == 10)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 26, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 30, 100);
    GivePlayerWeapon(playerid, 16, 10);
    GivePlayerWeapon(playerid, 34, 30);
    SetPlayerTeam(playerid,10);
    }
    if(gangteam[playerid] == 11)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 26, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 30, 100);
    GivePlayerWeapon(playerid, 16, 10);
    GivePlayerWeapon(playerid, 34, 30);
    SetPlayerTeam(playerid,11);
    }
    if(gangteam[playerid] == 12)
    {
    GivePlayerWeapon(playerid, 24, 150);
    GivePlayerWeapon(playerid, 26, 150);
    GivePlayerWeapon(playerid, 32, 150);
    GivePlayerWeapon(playerid, 30, 100);
    GivePlayerWeapon(playerid, 16, 10);
    GivePlayerWeapon(playerid, 34, 30);
    SetPlayerTeam(playerid,11);
    }
    }
    if(JaPegouaGrana[playerid] == 0)
    {
    GivePlayerMoney(playerid, 4000);
    JaPegouaGrana[playerid] = 1;
    }
    return 1;
}
stock PlayerName(playerid)
{
      new name[MAX_PLAYER_NAME];
      GetPlayerName(playerid, name, sizeof(name));
      return name;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    UpperToLower(text);
new srvchat[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(text[0] == '!')
{//Se Tiver '!'
format(srvchat, sizeof(srvchat),"|| Chat Gang %s: (id:%d): %s", pName, playerid, text[1]);
CallRemoteFunction("OnPlayerGangText","ds",playerid,srvchat);
return 0;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    lastcp[playerid] = CPS_GetPlayerCheckpoint(playerid);
     return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
    new checkpointid = lastcp[playerid];
    if(checkpointid > 0 && checkpointid <= 15) //sпїЅo 11 checkpoints, entпїЅo mude se for colocar mais...
    {
        cpzone[playerid][checkpointid] = 0; //saiu do CP...
        GangZoneStopFlashForAll(checkpointid-1);
    }
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{

new string[256];
new pName[MAX_PLAYER_NAME];
if(gangteam[playerid] == 0)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Gates",pName );
    SendClientMessageToAll(0xFF9900AA, string);
}
if(gangteam[playerid] == 1)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Militares",pName );
    SendClientMessageToAll(0x0000BBAA, string);
}
if(gangteam[playerid] == 2)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) PlayBoys",pName );
    SendClientMessageToAll(0xAA3333AA, string);
}
if(gangteam[playerid] == 3)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Noias",pName );
    SendClientMessageToAll(0x1E90FFAA, string);
}
if(gangteam[playerid] == 4)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Frangos",pName );
    SendClientMessageToAll(0xFF0000AA, string);
}
if(gangteam[playerid] == 5)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Agentes",pName );
    SendClientMessageToAll(0x778899AA, string);
}
if(gangteam[playerid] == 6)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Chineses",pName );
    SendClientMessageToAll(0xFF66FFAA, string);
}
if(gangteam[playerid] == 7)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) CowBoys",pName );
    SendClientMessageToAll(0x8B4513AA, string);
}
if(gangteam[playerid] == 8)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Bozo James",pName );
    SendClientMessageToAll(0x33AA33AA, string);
}
if(gangteam[playerid] == 9)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Grove",pName );
    SendClientMessageToAll(0x0D5800AA, string);

}
if(gangteam[playerid] == 10)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Ballas",pName );
    SendClientMessageToAll(0x800080AA, string);
}
if(gangteam[playerid] == 11)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Pantaneiros",pName );
    SendClientMessageToAll(0xFEEE66AA, string);
}
if(gangteam[playerid] == 12)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Rockeiros",pName );
    SendClientMessageToAll(0x40008096, string);
}
if(gangteam[playerid] == 13)
{
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "[GangZone] O Player '%s' vai jogar na gang do(s) Mendigos",pName );
    SendClientMessageToAll(0x00C4C4B7, string);
}
return 1;
}


public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}

public ZoneCheckpointChecker()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i))continue;
        if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 14 &&
            //sгo 11 checkpoints, entгo mude se for colocar mais...
            gzcolor[CPS_GetPlayerCheckpoint(i)-1] != gzcolorteam[gangteam[i]])
        {
            if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)
            {
            if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 5)
        {
        for(new j; j < MAX_PLAYERS; j++)
        {
        if(gangteam[j] == CPS_GetPlayerCheckpoint(i)-1)
            GameTextForPlayer(j, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~y~A base do ~g~seu time ~y~esta sendo ~r~dominada~y~!", 4000, 4);
        }
        }
                cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
                new tmp[10];
                format(tmp, sizeof tmp, "~r~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
                GameTextForPlayer(i, tmp, 1001, 4);
                GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, gzcolorteam[gangteam[i]]);
            } else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15) //passou 30 segundos dentro do checkpoint
            {
                GameTextForPlayer(i, "~w~Area Dominada", 4000, 1);
                gzcolor[CPS_GetPlayerCheckpoint(i)-1] = gzcolorteam[gangteam[i]];
                GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, gzcolor[gangteam[i]]);
                new str[256];
                format(str, 256, "[GangZone] - Os '%s' invadiram e dominaram mais um territуrio!", pgangnames[gangteam[i]][0]);
                SendClientMessageToAll(0xFFFFFFFF, str);
                PlayerInfo[i][pDominou]++;
            }
        }
}
}
LINHAS:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
 if(!classid)
{
    GameTextForPlayer(playerid,"~n~~r~Gates",2000,3);
    gangteam[playerid] = 0;
    format(pgang[playerid],15,pgangnames[0]);
    SetPlayerColor(playerid,0xFF9900AA);
}
  else if(classid == 1)
{
Reply
#2

sao erros simples mas posta so as linhas dos erros ne '--
Reply
#3

pawn Код:
new gangteam[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)