Ajude-me ! Ultima vez que eu peзo...
#1

[I]Bom pessoal, como vocкs sabem esse tуpico й um de muitos que eu criei para reparar uns error's do GameMode do PH, eu gostaria de usar ele como GM base talz, para min comeзar a codar com ele aprendendo a mecher com ele... mas eu precisava muito da ajuda de vocкs! eu gosto dele por causa dos sistemas de Bangu, Prisгo, Tempban etc, etc... Mais como eu sou novato precisava da ajuda de vocкs , para reparar os errors. Nгo sei se vгo consiguir se nгo consiguirem, ficarei triste e talz eu queria msm reparar esse gm ! se vocкs souberem um gamemode com esses sistemas ou um gamemode do PH sem errors... Abaixo vai tar os erros, e as linhas dos errors.

pawn Код:
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(245 1) : error 017: undefined symbol "AddFlitsPaal"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(249 6) : error 017: undefined symbol "BeginCowRace"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(250 1) : error 017: undefined symbol "GetRacerName"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(251 0) : error 017: undefined symbol "ResetCowRace"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(251 1) : error 017: undefined symbol "GetRacerColor"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(253 0) : error 017: undefined symbol "GetRacerName"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(253 2) : error 004: function "GivePlayerGP" is not implemented
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(257 0) : error 017: undefined symbol "GetRacerName"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(258 6) : error 017: undefined symbol "SafeSetPlayerPos"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(259 3) : error 017: undefined symbol "SafeSetPlayerPos"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(260 0) : error 017: undefined symbol "SafeSetPlayerPos"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(349 2) : error 017: undefined symbol "IsNumeric"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(358 5) : error 017: undefined symbol "ReturnPlayer"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(360 6) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(371 3) : error 017: undefined symbol "ReturnPlayer"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(371 4) : error 004: function "SendJobMessage" is not implemented
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(374 1) : error 017: undefined symbol "ReturnPlayer"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(374 2) : error 004: function "SendJobMessage" is not implemented
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(374 3) : error 017: undefined symbol "ReturnPlayer"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(376 5) : error 017: undefined symbol "ReturnPlayer"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(376 6) : error 004: function "SendJobMessage" is not implemented
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(381 3) : error 017: undefined symbol "ReturnPlayer"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(381 5) : error 017: undefined symbol "ReturnPlayer"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(385 3) : error 017: undefined symbol "ReturnPlayer"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(385 5) : error 017: undefined symbol "WriteLog"
C:\Users\Gustavo\Desktop\new\gamemodes\new.pwn(387 3) : error 017: undefined symbol "SafeSetPlayerPos"

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


26 Errors.
as linhas sao linha 2400 atй a linha 3900

pawn Code:
pawn Код:
public OnVehicleUpdate(playerid)
{
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}

enum radar_enum
{
    rModel,
    Float:rCoordX,
    Float:rCoordY,
    Float:rCoordZ,
    rSize,
    rMaxSpeed,
}
#define MAX_RADARS  15
new Radars[MAX_RADARS][radar_enum] = {
{9583, 1520.5536,-1725.0463,13.5469, 30, 100}, // DP
{9583, 1490.2633,-1042.3094,23.8281, 30, 100}, // BANCO
{9583, 1140.9581,-1389.0974,13.8155, 30, 100}, // HOSPITAL
{9583, 1361.1643,-1024.9176,26.6777, 30, 100}, // AVAMMU1
{9583, 1349.9918,-1163.3385,24.4372, 30, 100}, // AVAMMU2 - 5
{9583, 1305.1011,-1725.6541,13.2711, 30, 100}, // AVAMMU3
{9583, 1828.9318,-1743.9094,13.2738, 30, 100}, // ALHANMBRA
{9583, 1970.7189,-1940.6007,13.2872, 30, 100}, // AERO
{9583, 2088.5801,-1744.0687,13.1890, 30, 100}, // POSTO
{9583, 1839.0975,-1453.6383,13.2470, 30, 100}, //SKATE - 10
{9583, 1004.5890,-952.0765,41.9890, 30, 100}, // POSTON
{9583, 1071.0453,-1156.8212,23.8281, 30, 100}, // CASSINO
{9583, 926.4445,-1414.4951,13.3860, 30, 100},// HOSP2
{9583, 614.9930,-1719.5394,14.0405, 30, 100},//PIER - 15
{9583, 375.7494,-1822.7308,7.8359, 30, 100}//PIER2
};


new bool:Multado[MAX_PLAYERS][MAX_RADARS];

public CheckRadars()
{
    for(new i=0; i< HighestID; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerPing(i) > MAX_PING)
            {
                SendClientMessage(i,COLOR_RED,"Vocк foi kickado por ter um ping maior que 1300.");
                Kick(i);
            }
            if(IsPlayerInAnyVehicle(i))
            {
                for(new x = 0; x < MAX_RADARS; x ++)
                {
                    if(Multado[i][x] == false)
                        AddFlitsPaal(i, x,Radars[x][rCoordX],Radars[x][rCoordY],Radars[x][rCoordZ],Radars[x][rSize],Radars[x][rMaxSpeed]);
                    else
                        Multado[i][x] = false;
                }
            }
        }
    }
}

public OnRaceUpdate()
{
    switch(RaceStep)
    {
        case 0: //Race is going to begin in 5 seconds
        {
            Update3DTextLabelText(RaceStart,COLOR_GREEN,"A corrida jб vai comeзar.");
            RaceStep=1;
            SetTimer("OnRaceUpdate",5000,0);
            for(new playerid;playerid<MAX_PLAYERS;playerid++)
            {
                if(!IsPlayerConnected(playerid))continue;
                if(GetPVarInt(playerid,"DIALOG"))
                {
                    ShowPlayerDialog(playerid,-1,-1,"","","","");
                    SendClientMessage(playerid,COLOR_RED,"A corrida estб comeзando e as apostas foram encerradas.");
                    SetPVarInt(playerid,"DIALOG",0);
                }
            }
        }
        case 1:
        {
            Update3DTextLabelText(RaceStart,COLOR_YELLOW,"Preparar !");
            RaceStep=2;
            SetTimer("OnRaceUpdate",1000,0);
        }
        case 2:
        {
            Update3DTextLabelText(RaceStart,COLOR_ORANGE,"Apontar!");
            RaceStep=3;
            SetTimer("OnRaceUpdate",1000,0);
        }
        case 3:
        {
            Update3DTextLabelText(RaceStart,COLOR_GREEN,"Foooogo!");
            RaceStep=4;
            BeginCowRace();
        }
        case 4:
        {
            new string[64];
            format(string,64,"%s\nй a vencedora!",GetRacerName(RaceWinner));
            Update3DTextLabelText(CowNames[RaceWinner],COLOR_GREEN,string);
            Update3DTextLabelText(RaceStart,COLOR_GREEN,string);
            OnRaceEnd();
            RaceStep=5;
            SetTimer("OnRaceUpdate",5000,0);
        }
        case 5:
        {
            ResetCowRace();
            Update3DTextLabelText(CowNames[RaceWinner],GetRacerColor(RaceWinner),GetRacerName(RaceWinner));
            Update3DTextLabelText(RaceStart,COLOR_YELLOW,"Intervalo!");
            RaceStep=0;
            SetTimer("OnRaceUpdate",RACE_INTERVAL,0);
        }
    }
}

public OnRaceEnd()
{
    for(new playerid;playerid<MAX_PLAYERS;playerid++)
    {
        if(!IsPlayerConnected(playerid))continue;
        new string[64];
        new pvar[5];
        format(pvar,5,"BET%d",RaceWinner);
        SetPVarInt(playerid,pvar,GetPVarInt(playerid,pvar)*2);
        if(GetPVarInt(playerid,pvar))
        {
            format(string,64,"Vocк ganhou R$%d por apostar na %s!",GetPVarInt(playerid,pvar),GetRacerName(RaceWinner));
            SendClientMessage(playerid,COLOR_GREEN,string);
            GivePlayerGP(playerid,GetPVarInt(playerid,pvar));
        }
        for(new bet;bet<5;bet++)
        {
            format(pvar,5,"BET%d",bet);
            SetPVarInt(playerid,pvar,0);
        }
    }
    return 1;
}

public OnObjectMoved(objectid)
{
    if(RaceStep==4)
    {
        for(new racer;racer<5;racer++)
        {
            if(objectid==CowRacer[racer])
            {
                CowStep[racer]++;
                if(CowStep[racer]==MAX_PACES)
                {
                    RaceWinner=racer;
                    OnRaceUpdate();
                    return 1;
                }
                if(CowStep[racer]==MAX_PACES-5)
                {
                    if(CowsRigged[racer][3]==1)
                    {
                        CowStep[racer]--;
                        CowsRigged[racer][3]=0; //So it doesn't repeat >.<
                        return SetTimerEx("OnObjectMoved",RIG_PIT_STOP_TIME,0,"i",objectid);
                    }
                    if(CowsRigged[racer][2]==1)CowStep[racer]=MAX_PACES-1;
                }
                MoveObject(CowRacer[racer],XPaces[racer],YPaces[CowStep[racer]],8.695835,random(MAX_SPEED+((CowsRigged[racer][0]==1)?(RIG_SPEED):(0))-MIN_SPEED+((CowsRigged[racer][1]==1)?(-RIG_SPEED):(0)))+MIN_SPEED);
                if(LabelIsOn[racer])Delete3DTextLabel(CowNames[racer]);
                CowNames[racer]=Create3DTextLabel(GetRacerName(racer),GetRacerColor(racer),XPaces[racer],YPaces[CowStep[racer]],10,100,0,1);
            }
        }
    }
    return 1;
}

public LimparAnim(playerid)
{
       ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
}

public Viajar(playerid, local)
{
    if(local == 0)
    {
        SafeSetPlayerPos(playerid, 1634.9512,-2247.1423,13.4959);
        SetPlayerFacingAngle(playerid, 120.5);
        SetPlayerInterior(playerid,0);
        SetCameraBehindPlayer(playerid);
    }
    else if(local == 1)
    {
        SafeSetPlayerPos(playerid, -1429.5408,-288.9456,14.1484);
        SetPlayerFacingAngle(playerid, 108.5);
        SetPlayerInterior(playerid,0);
        SetCameraBehindPlayer(playerid);
    }
    else if(local == 2)
    {
        SafeSetPlayerPos(playerid, 1686.8909,1452.3741,10.7689);
        SetPlayerFacingAngle(playerid, 266.5);
        SetPlayerInterior(playerid,0);
        SetCameraBehindPlayer(playerid);
    }
    return 1;
}

new Music[MAX_PLAYERS];
new Songs[7][1] = {
{1187},
{1185},
{1183},
{1097},
{1076},
{1068},
{1062}
};

new FishNamesNumber = 22;
new FishNames[22][20] = {
{"Jaqueta"},
{"Traira"},
{"Stifler"},
{"Snapper vermelho"},
{"Calcas"},
{"Trout"},
{"Marlin azul"},
{"Can"},
{"Mackeral"},
{"Sea Bass"},
{"Tкnis"},
{"Pike"},
{"Peixe sуlido"},
{"Garbage"},
{"Tuna"},
{"Dourado"},
{"Golfinho"},
{"Tubarгo"},
{"Tartaruga"},
{"Peixe-gato"},
{"Mochila Boa"},
{"Peixe espada"}
};

new Float:MacaSpawns[3][3] = {
{1247.5032,-1315.5708,747.5302},
{1244.0000,-1315.6886,747.5302},
{1251.4761,-1316.0134,747.5302}
};

new Float:HospSpawns[6][3] = {
{1178.1605,-1319.4860,14.1064},
{2039.6392,-1412.3247,17.1641},
{2034.5967,-1408.0800,17.1641},
{2026.8285,-1406.7856,17.1997},
{1178.5494,-1324.7423,14.1256},
{1178.9200,-1328.3419,14.1439}
};

new Float:PaintballSpawns[6][3] = {
{-1317.1432,2526.5583,87.5537},
{-1319.3352,2542.0811,87.5907},
{-1305.0356,2525.8201,87.5246},
{-1287.4983,2516.3545,87.1522},
{-1310.6573,2513.1047,87.0420},
{-1286.5500,2513.2385,87.0407}
};

#define MAXCPS_BOATTEST 17
new Float:BoatTestCP[MAXCPS_BOATTEST][3] = {
{692.9651,-1970.5638,-0.5444},
{309.3667,-1980.7640,-0.4199},
{87.3689,-1880.3497,-0.4534},
{61.4832,-1587.3802,-0.4665},
{57.3684,-1295.4673,-0.5044},
{69.0648,-1046.8188,-0.5243},
{-24.8226,-917.9951,-0.4407},
{-72.7284,-644.0289,-0.4763},
{196.5481,-422.5445,-0.5187},
{422.1385,-277.4556,-0.4194},
{747.5889,-188.4847,-0.4567},
{962.2955,-117.8565,-0.4806},
{1210.0996,-143.5292,-0.4108},
{1433.5621,-248.9770,-0.3547},
{1611.5878,-56.1697,-0.2979},
{1797.8866,-45.0469,-0.3097},
{2122.1262,-99.3532,-0.1933}
};

#define MAXCPS_FLYTEST 8
new Float:FlyTestCP[MAXCPS_FLYTEST][3] = {
{965.0464,-1065.1567,100.5382},
{963.6418,-1428.5138,103.0279},
{470.4404,-1487.9891,129.6486},
{418.6905,-2072.2019,60.9438},
{57.8400,-1836.1703,56.8835},
{394.2709,-2233.4905,58.2942},
{1859.8767,-2411.6353,13.7424},
{397.4704,2507.5149,17.4079}
};
#define MAXCPS_DRIVETEST 11
new Float:DriverTestCP[MAXCPS_DRIVETEST][3] = {
{961.5031,-1133.0081,23.5504},
{1055.2715,-1160.9285,23.4955},
{1038.5721,-1551.4927,13.0969},
{833.7417,-1609.4537,13.1287},
{631.8911,-1596.3690,15.3020},
{614.2161,-1725.5762,13.6635},
{158.6646,-1559.9891,11.1087},
{580.2456,-1234.8270,17.2988},
{882.1153,-994.5864,35.5175},
{987.0454,-937.7714,41.7504},
{987.0454,-937.7714,41.7504}
};

new Float:cLixoPoints[20][3] = {
{1867.5664,-1884.1713,13.4524},
{1973.1025,-1991.8855,13.5539},
{1882.7950,-2021.5413,13.3906},
{2120.1213,-1937.0153,13.3828},
{2328.6960,-1980.2823,13.5538},
{2704.7417,-2150.9749,10.9025},
{2318.8513,-2322.5823,13.5469},
{2009.3618,-1731.7355,13.5469},
{2173.9609,-1673.0065,15.0851},
{1568.0717,-1878.8105,13.5469},
{1318.0509,-1794.9291,13.5469},
{1096.6329,-1383.6093,13.7878},
{958.6176,-1332.9087,13.5265},
{833.5989,-1549.9231,13.5107},
{757.8168,-1650.9823,4.9872},
{910.4758,-1247.7280,15.7055},
{1089.2473,-1061.9766,29.6671},
{1655.2554,-1060.6317,23.8984},
{1939.9207,-1087.1567,24.8597},
{2354.7175,-1052.3234,54.0795}
};

new Float:cPaperPoints[34][3] = {
{967.4884,-1112.2168,23.3689},
{1049.5774,-1044.6626,31.5494},
{1087.8516,-1078.0575,26.8580},
{1168.0457,-1095.2380,25.0456},
{1193.0183,-1025.6461,32.1097},
{861.2191,-1521.7723,13.1542},
{818.6918,-1492.4486,13.1716},
{757.7667,-1653.2195,4.3666},
{639.4219,-1704.9419,14.1038},
{689.9801,-1590.3615,13.5649},
{706.4379,-1639.9802,3.0354},
{706.9935,-1697.3369,3.0448},
{1567.4783,-1876.7881,12.9801},
{2006.0043,-1707.9957,12.9624},
{1997.8491,-1678.0245,12.9809},
{2005.5183,-1648.2424,12.9807},
{2077.2786,-1644.9803,12.9946},
{2078.4580,-1698.5576,12.9885},
{2317.0283,-1725.2175,13.1522},
{2337.8188,-1681.4915,12.9580},
{2370.3196,-1654.9622,12.9807},
{2442.6833,-1654.8268,12.9088},
{2502.7861,-1678.9219,12.9455},
{2861.1123,-1330.8590,10.4903},
{2800.8276,-1327.2139,32.5735},
{2491.6694,-1276.8781,31.9728},
{2447.7107,-1308.2224,23.4241},
{2454.5437,-1428.4326,23.4266},
{2484.8835,-1536.7572,23.5906},
{1888.0967,-2056.6904,12.9814},
{1864.8920,-2048.2305,12.9817},
{1805.2134,-2117.9016,13.1601},
{1767.5339,-2109.1799,12.9803},
{1725.8965,-2116.9756,12.9811}
};

new Float:gMedPlayerSpawns[2][3] = {
{1178.1,-1321.0,14.1},
{1177.7,-1325.0,14.0}
};

new TitelName[128];
enum pBoxingStats
{
    //TitelName[128],
    TitelWins,
    TitelLoses,
};
new Titel[pBoxingStats];

new PaperUsed[MAX_PAPERS];
new PaperMaker[MAX_PAPERS][20];
new PaperTitle[MAX_PAPERS][64];
new PaperText1[MAX_PAPERS][128];
new PaperText2[MAX_PAPERS][128];
new PaperText3[MAX_PAPERS][128];
new PaperText4[MAX_PAPERS][128];
new PaperText5[MAX_PAPERS][128];
new PaperText6[MAX_PAPERS][128];
new PaperText7[MAX_PAPERS][128];
new SafeSaving[MAX_PAPERS];

new pMaker[MAX_PLAYERS][20];
new pTitle[MAX_PLAYERS][64];
new pLine1[MAX_PLAYERS][128];
new pLine2[MAX_PLAYERS][128];
new pLine3[MAX_PLAYERS][128];
new pLine4[MAX_PLAYERS][128];
new pLine5[MAX_PLAYERS][128];
new pLine6[MAX_PLAYERS][128];
new pLine7[MAX_PLAYERS][128];
/*enum pPaperInfo
{
    PaperUsed,
    PaperMaker[20],
    PaperTitle[64],
    PaperText1[128],
    PaperText2[128],
    PaperText3[128],
    PaperText4[128],
    PaperText5[128],
    PaperText6[128],
    PaperText7[128],
    SafeSaving,
};
new PaperInfo[10][pPaperInfo];

enum pPaper
{
    pMaker[20],
    pTitle[64],
    pLine1[128],
    pLine2[128],
    pLine3[128],
    pLine4[128],
    pLine5[128],
    pLine6[128],
    pLine7[128],
};
new Paper[MAX_PLAYERS][pPaper];*/

enum CabineInfo
{
    bool:Ocupado,
    Jogador,
    Float:CabX,
    Float:CabY,
    Float:CabZ
};

new Cabine[28][CabineInfo] = {
{false,-1,300.0858,-138.6069,1004.0625},
{false,-1,300.0803,-135.5893,1004.0625},
{false,-1,300.0777,-132.6652,1004.0625},
{false,-1,300.0777,-129.5526,1004.0625},
{false,-1,300.0858,-138.6069,1004.0625},
{false,-1,300.0803,-135.5893,1004.0625},
{false,-1,300.0777,-132.6652,1004.0625},
{false,-1,300.0777,-129.5526,1004.0625},
{false,-1,300.0858,-138.6069,1004.0625},
{false,-1,300.0803,-135.5893,1004.0625},
{false,-1,300.0777,-132.6652,1004.0625},
{false,-1,300.0777,-129.5526,1004.0625},
{false,-1,300.0858,-138.6069,1004.0625},
{false,-1,300.0803,-135.5893,1004.0625},
{false,-1,300.0777,-132.6652,1004.0625},
{false,-1,300.0777,-129.5526,1004.0625},
{false,-1,300.0858,-138.6069,1004.0625},
{false,-1,300.0803,-135.5893,1004.0625},
{false,-1,300.0777,-132.6652,1004.0625},
{false,-1,300.0777,-129.5526,1004.0625},
{false,-1,300.0858,-138.6069,1004.0625},
{false,-1,300.0803,-135.5893,1004.0625},
{false,-1,300.0777,-132.6652,1004.0625},
{false,-1,300.0777,-129.5526,1004.0625},
{false,-1,300.0858,-138.6069,1004.0625},
{false,-1,300.0803,-135.5893,1004.0625},
{false,-1,300.0777,-132.6652,1004.0625},
{false,-1,300.0777,-129.5526,1004.0625}
};

#define MAX_PIX   100
#define GRANA_PIX       4
new GranaPix[MAX_PLAYERS];
new NumPix[MAX_PLAYERS];
new Text3D:PixLabel[MAX_PIX];
enum PixInfo
{
    Dono,
    Float:PixX,
    Float:PixY,
    Float:PixZ
};

new bool:Pixando[MAX_PLAYERS];

new Float:Pixacao[MAX_PIX][PixInfo] = {
{0, 2101.8997,-1648.6208,13.3725},
{0, 2066.7412,-1652.5665,13.5469},
{0, 2046.0721,-1635.9379,13.5469},
{0, 2353.3003,-1508.2350,24.0000},
{0, 2394.1829,-1468.5999,24.0117},
{0, 2399.2993,-1551.6932,28.0000},
{0, 2422.5659,-1682.1787,13.8024},
{0, 2272.9998,-1687.7777,13.6513},
{0, 2073.8396,-1579.1943,13.4554},
{0, 1959.1429,-1577.5194,13.5883},
{0, 1767.3453,-1617.2103,14.4710},
{0, 1837.3754,-1640.5139,13.3125},
{0, 1799.4607,-1708.6892,13.5275},
{0, 1724.7206,-1741.1578,13.5469},
{0, 1837.4474,-1813.8838,3.9844},
{0, 1910.1727,-1779.3429,17.9766},
{0, 2034.4106,-1801.9783,14.4844},
{0, 2162.8105,-1786.4110,13.5190},
{0, 2065.3198,-1897.5531,13.5538},
{0, 1850.0338,-1877.1703,13.5603},
{0, 1888.9274,-1982.4363,15.8744},
{0, 1950.9641,-2034.4360,13.5469},
{0, 1808.6780,-2092.4297,13.5469},
{0, 1784.0397,-2156.9214,13.5469},
{0, 1936.7638,-2135.3010,13.6953},
{0, 2173.7625,-2165.5139,15.2171},
{0, 2134.4856,-2011.5219,9.2939},
{0, 2274.1365,-2266.1008,13.5469},
{0, 2379.1689,-2166.4189,24.3050},
{0, 2273.5107,-2529.0403,8.2896},
{0, 1574.5131,-2691.9121,13.1596},
{0, 1624.6973,-2296.5679,13.5387},
{0, 1119.1764,-2008.4498,74.4297},
{0, 1070.8408,-1863.8458,13.5469},
{0, 810.8320,-1797.3727,13.0234},
{0, 482.7039,-1761.9603,5.5388},
{0, 399.3598,-2066.8975,10.7472},
{0, 583.7939,-1502.0382,15.2971},
{0, 730.4956,-1482.4688,1.9688},
{0, 947.8683,-1466.8226,17.1484},
{0, 466.6426,-1283.1222,15.4343},
{0, 1073.1974,-1012.6358,34.9017},
{0, 944.2350,-985.4811,38.6843},
{0, 1206.5846,-1161.9666,23.4949},
{0, 1098.5052,-1292.5448,17.0469},
{0, 1295.1667,-1464.8701,10.0469},
{0, 1271.4329,-1662.6163,19.7344},
{0, 1332.1658,-1722.6425,13.5469},
{0, 1448.2087,-1755.5513,13.5469},
{0, 1549.8146,-1714.8585,13.5469},
{0, 1746.7198,-1359.3901,15.7673},
{0, 1687.2382,-1238.7872,14.9844},
{0, 1498.6434,-1207.0150,23.5967},
{0, 1519.7635,-1010.8885,23.8559},
{0, 1732.3914,-963.1514,40.9532},
{0, 1912.2139,-1064.4200,24.1247},
{0, 2062.3904,-996.3725,47.9766},
{0, 2122.3999,-1060.7532,25.0996},
{0, 2240.0542,-999.5577,59.5762},
{0, 2076.4111,-1070.9664,27.1003},
{0, 2281.8040,-1118.9077,26.8984},
{0, 2224.6914,-1193.3823,25.6688},
{0, 2119.2183,-1196.2710,23.8169},
{0, 1966.9803,-1175.0684,20.0307},
{0, 1969.2760,-1289.7344,23.9844},
{0, 1974.1326,-1351.8368,23.8461},
{0, 2093.6663,-1413.8011,23.9821},
{0, 2182.2083,-1467.5427,25.5391},
{0, 2234.2969,-1367.6244,24.5313},
{0, 2132.1907,-1258.4297,23.9922},
{0, 2322.7449,-1254.3627,22.5000},
{0, 2132.2808,-1258.4302,23.9922},
{0, 2346.5903,-1351.0975,24.0177},
{0, 2462.2954,-1541.7015,24.3438},
{0, 2522.1257,-1478.5363,23.9912},
{0, 2542.6572,-1363.3373,31.3865},
{0, 2536.5662,-1352.8354,30.7648},
{0, 2580.6204,-1274.0150,46.1438},
{0, 2603.1079,-1197.5342,60.8492},
{0, 2576.9163,-1143.6112,47.8655},
{0, 2621.5559,-1092.5341,69.6085},
{0, 2797.8384,-1097.3741,30.7188},
{0, 2820.3391,-1190.6528,25.2146},
{0, 2766.3811,-1197.2747,68.8755},
{0, 2841.3525,-1313.3173,18.5467},
{0, 2755.7019,-1388.0579,39.3797},
{0, 2668.2092,-1469.1488,30.5609},
{0, 2612.7661,-1391.1266,34.7286},
{0, 2768.1172,-1621.1292,10.9272},
{0, 2767.8540,-1820.2546,11.8468},
{0, 2874.8459,-1909.3337,8.1396},
{0, 2794.4885,-1906.4790,13.5394},
{0, 2813.3381,-1942.0298,11.1094},
{0, 2763.3875,-2012.0569,13.5547},
{0, 2704.5322,-1966.6729,13.5469},
{0, 2489.2600,-1958.7419,13.5811},
{0, 2392.3398,-1914.8918,13.5469},
{0, 2430.2019,-1998.2240,13.5469},
{0, 2587.6523,-2063.6067,4.5265},
{0, 2704.5264,-2144.3408,11.0719}
};


#define MAX_TURFS   8

enum zInfo
{
    zName[24],
    Float:zMinX,
    Float:zMinY,
    Float:zMaxX,
    Float:zMaxY
};

new TurfsCoords[MAX_TURFS][zInfo] = {
{"Morro", 2117.333, -1069.962, 2261.841, -959.4252},
{"Skate", 1861.9410,-1450.6462,1976.5867,-1351.4069},
{"Shop", 1061.1545,-1566.9081,1190.9424,-1411.1282},
{"Aero", 1395.7454,-2368.6396,1566.4358,-2204.4346},
{"Farol", 133.1268, -1968.3923, 178.0602, -1880.1589},
{"Bangu", -200.0000,1650.0000,450.0000,2550.0000},
{"Usina", -907.0000,1365.0000,-480.0000,2148.0000},
{"Fabrica", -447.7593,-1535.479,-316.0,-1334.634}
};
//{"Pier", 318.0144, -2120.061, 437.1136, -1993.733},

new AllowedOrgs[MAX_TURFS][] = {
{1, 5, 6, 10, 11, 12, 13, 15, 18, 19, 20, 24},
{1, 5, 6, 10, 11, 12, 13, 15, 18, 19, 20, 24},
{1, 5, 6, 10, 11, 12, 13, 15, 18, 19, 20, 24},
{1, 5, 6, 10, 11, 12, 13, 15, 18, 19, 20, 24},
{1, 5, 6, 10, 11, 12, 13, 15, 18, 19, 20, 24},
{3, 22},
{3, 22},
{2,16,17}
};

enum GangZonesEx
{
    ZoneOwner,                          //Zone owner
    bool:ZoneInWar,                     //Whether or not zone is in war
    bool:ZoneIsSpawn,
    bool:IsZoneGZ,
    bool:IsZoneVillage,

    ZoneWarPoints[MAX_ORGS],
    ZoneAttacker,                       //Gang who started war
    ZonePlayerCount[MAX_ORGS],
    ZonePlayerCountEx[MAX_ORGS],        //Players in zone
    ZoneWarKillCount[MAX_ORGS],         //Kill tracker for in war zone count
    ZoneKillCount[MAX_ORGS],        //Kill counter (for not in war)
    ZoneWarTimeLeft,                    //Time left before war ends
    ZonePlayerReqMet[MAX_ORGS],     //Number of times zone check passed the player requirement (gang-based)
    ZoneWarPlayers[MAX_ORGS],           //Players from each gang that participated in war (gang-based)
    ZoneWarCount,                       //Number of wars fought

}
new gZonesData[MAX_TURFS][GangZonesEx];


new Turfs[MAX_TURFS];

enum pFishing
{
    pFish1[20],
    pFish2[20],
    pFish3[20],
    pFish4[20],
    pFish5[20],
    pFish6[20],
    pWeight1,
    pWeight2,
    pWeight3,
    pWeight4,
    pWeight5,
    pWeight6,
    pFid1,
    pFid2,
    pFid3,
    pFid4,
    pFid5,
    pFid6,
    pLastFish,
    pFishID,
    pLastWeight,
};
new Fishes[MAX_PLAYERS][pFishing];

enum pCooking
{
    pCook1[20],
    pCook2[20],
    pCook3[20],
    pCook4[20],
    pCook5[20],
    pCWeight1,
    pCWeight2,
    pCWeight3,
    pCWeight4,
    pCWeight5,
    pCookID1,
    pCookID2,
    pCookID3,
    pCookID4,
    pCookID5,
};
new Cooking[MAX_PLAYERS][pCooking];

enum pGroceries
{
    pChickens,
    pChicken,
    pHamburgers,
    pHamburger,
    pPizzas,
    pPizza,
};
new Groceries[MAX_PLAYERS][pGroceries];

enum pSpec
{
    Float:Coords[3],
    Float:sPx,
    Float:sPy,
    Float:sPz,
    sPint,
    sLocal,
    sCam,
};

new Unspec[MAX_PLAYERS][pSpec];

enum eCars
{
    model_id,
    Float:pos_x,
    Float:pos_y,
    Float:pos_z,
    Float:z_angle,
};

new pMarriedTo[MAX_PLAYERS][128];
enum pInfo
{
    gSpectateID,
    gSpectateType,
    TurfKills,
    TurfDeaths,
    WarPoints,
    SenhaFila,
    MuteTime,
    bool:Spawned,
    pMorto,
    bool:FirstSpawn,
    bool:SeePoints,
    bool:SeeName,
    bool:SeeChecksBar,
    JailReason[32],
    pName[MAX_PLAYER_NAME],
    pKey[128],
    pSeatBelt,
    pCapacete,
    pLevel,
    pAdmin,
    pEnigma,
    pDonateRank,
    gPupgrade,
    pConnectTime,
    pReg,
    pSex,
    pAge,
    pOrigin,
    pExp,
    pCash,
    pBank,
    pCrimes,
    pConce,
    pCrimes2,
    SkillPistol,  //0 - WEAPONSKILL_PISTOL
    SkillPistolS,  //1 - WEAPONSKILL_PISTOL_SILENCED
    SkillEagle,  //2 - WEAPONSKILL_DESERT_EAGLE
    SkillShotgun,  //3 - WEAPONSKILL_SHOTGUN
    SkillMP5,  //7 - WEAPONSKILL_MP5
    SkillAK47,  //8 - WEAPONSKILL_AK47
    SkillM4,  //9 - WEAPONSKILL_M4
    pKills,
    pDeaths,
    pArrested,
    pWantedDeaths,
    pPhoneBook,
    pPhone,
    pLottoNr,
    pFishes,
    pBiggestFish,
    pJob,
    pHeadValue,
    pJailed,
    pJailTime,
    pJailTimetotal,
    pMats,
    pDrugs,
    pLuta,
    pCigarro,
    pPC,
    pCorda,
    pPlano,
    pVotou,
    pBan,
    pLeader,
    pMember,
    pFMember,
    pRank,
    pChar,
    pContractTime,
    pDetSkill,
    pSexSkill,
    pBoxSkill,
    pLawSkill,
    pMechSkill,
    pJackSkill,
    pCarSkill,
    pNewsSkill,
    pDrugsSkill,
    pCookSkill,
    pFishSkill,
    Float:pHealth,
    Float:pSHealth,
    Float:pLocalX,
    Float:pLocalY,
    Float:pLocalZ,
    pInt,
    pLocal,
    pTeam,
    pModel,
    pPnumber,
    pPhousekey,
    pPaluguelkey,
    pPbiskey,
    pAtend,
    pNota,
    pLocalSpawn,

    Float:LastSpeed,

    pCarLic,
    pFlyLic,
    pBoatLic,
    pFishLic,
    pGunLic,
    pGun1,
    pGun2,
    pGun3,
    pGun4,
    pAmmo1,
    pAmmo2,
    pAmmo3,
    pAmmo4,
    pCarTime,
    pPayDayHad,
    pCDPlayer,
    pWins,
    pLoses,
    pAlcoholPerk,
    pDrugPerk,
    pMiserPerk,
    pPainPerk,
    pTraderPerk,
    pTut,
    pWarns,
    pVirWorld,
    pAdjustable,
    pFuel,
    pRoadblock,
    pCone,
    pCorrente,
    pRequestingBackup,
    pMarried,
    pLastLogin[24],
    pLastSave,
    pLogedTime,
    pControleR,

    pDest[32],
    pAviso1[32],
    pAviso2[32],
    CMD,
    pMask,
    pInvWeapon,
    pInvAmmo,
    pSpeaker,
    pMaskuse,
    LastZone,
    TransferID,

    LastCmd
};
new Player[MAX_PLAYERS][pInfo];

new hOwner[MAX_HOUSES][MAX_PLAYER_NAME];
new hDiscription[MAX_HOUSES][MAX_PLAYER_NAME];

enum hInfo
{
    Float:hEntrancex,
    Float:hEntrancey,
    Float:hEntrancez,
    Float:hExitx,
    Float:hExity,
    Float:hExitz,
    hHealthx,
    hHealthy,
    hHealthz,
    hArmourx,
    hArmoury,
    hArmourz,
    hValue,
    hHel,
    hArm,
    hInt,
    hLock,
    hOwned,
    hRooms,
    hRent,
    hRentabil,
    hTakings,
    hVec,
    hVcol1,
    hVcol2,
    hDate,
    hArrombada,
    hIcon,
    hLevel,
    hWorld,
    Text3D:HouseLabel
};

new HouseInfo[MAX_HOUSES][hInfo];

new bOwner[MAX_BIZ][64];
new bMessage[MAX_BIZ][128];
new bExtortion[MAX_BIZ][MAX_PLAYER_NAME];
enum bInfo
{
    bOwned,
    //bOwner[64],
    //bMessage[128],
    //bExtortion[MAX_PLAYER_NAME],
    Float:bEntranceX,
    Float:bEntranceY,
    Float:bEntranceZ,
    Float:bExitX,
    Float:bExitY,
    Float:bExitZ,
    bLevelNeeded,
    bBuyPrice,
    bEntranceCost,
    bTill,
    bLocked,
    bInterior,
    bProducts,
    bMaxProducts,
    bPriceProd,
    Text3D:bizzLabel,
};
new BizzInfo[MAX_BIZ][bInfo];

new sbOwner[MAX_SBIZ][MAX_PLAYER_NAME];
new sbMessage[MAX_SBIZ][128];
new sbExtortion[MAX_SBIZ][MAX_PLAYER_NAME];
enum sbInfo
{
    sbOwned,
    //sbOwner[64],
    //sbMessage[128],
    //sbExtortion[MAX_PLAYER_NAME],
    Float:sbEntranceX,
    Float:sbEntranceY,
    Float:sbEntranceZ,
    sbLevelNeeded,
    sbBuyPrice,
    sbEntranceCost,
    sbTill,
    sbLocked,
    sbInterior,
    sbProducts,
    sbMaxProducts,
    sbPriceProd,
    Text3D:sbizzLabel,
};
new SBizzInfo[MAX_SBIZ][sbInfo];

enum pHaul
{
    pCapasity,
    pLoad,
};

new PlayerHaul[MAX_VEHICLES][pHaul];

enum pCrime
{
    pBplayer[32],
    pAccusing[32],
    pAccusedof[32],
    pVictim[32],
};
new PlayerCrime[MAX_PLAYERS][pCrime];

new URLRadio[MAX_RADIOS][128];
enum RadioInfo
{
    NomeRadio[64],
    //URLRadio[128],
    RadioID
};
new RadioAdd[MAX_RADIOS][RadioInfo];
stock AddRadio(nomer[],url[])
{
    RadioCriadas++;
    format(RadioAdd[RadioCriadas][NomeRadio],64,"%s",nomer);
    format(URLRadio[RadioCriadas],64,"%s",url);
    RadioAdd[RadioCriadas][RadioID] = RadioCriadas;
    printf("Radio %s Adicionada com Sucesso (id:%d)",nomer,RadioCriadas);
    return ;
}
/*
public Audio_OnClientConnect(playerid)
{
    Audio_TransferPack(playerid);
}

public Audio_OnSetPack(audiopack[])
{
    for (new i = 0; i < SLOTS_RADIO; i++)
        Audio_TransferPack(i);
    return 1;
}*/


new bool:Equipe[MAX_PLAYERS];

stock DuasEquipes(t1,t2)
{
    static bool:loop;
    for(new i=0;i <= MAX_PLAYERS;i++)
    {
        if(noevento[i] == true)
        {
            if(loop == true)
            {
                Equipe[i] = true;
                loop = false;
                SendClientMessage(i,-1,"Vocк foi para a Equipe 1.");
                SetPlayerTeam(i,t1);
            }
            else
            {
                Equipe[i] = false;
                loop = true;
                SendClientMessage(i,-1,"Vocк foi para a Equipe 2.");
                SetPlayerTeam(i,t2);
            }
        }
    }
}

stock IsPlayerInZone(playerid, zoneid) {
    if(zoneid == -1) return false;
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(x >= zones[zoneid][zone_minx] && x < zones[zoneid][zone_maxx] && y >= zones[zoneid][zone_miny] && y < zones[zoneid][zone_maxy] && z >= zones[zoneid][zone_minz] && z < zones[zoneid][zone_maxz] && z < 900.0) return true;
    return false;
}

stock ReturnWeaponID(WeaponName[])
{
    if(strfind("molotov",WeaponName,true)!=-1) return 18;
    for(new i = 0; i <= 46; i++)
    {
        switch(i)
        {
            case 0,19,20,21,44,45:
                continue;
            default:
            {
                new name[24];
                GetWeaponName(i,name,24);
                if(strfind(name,WeaponName,true)!=-1)
                    return i;
            }
        }
    }
    return -1;
}

stock ReturnUser(PlayerName[])
{
    if(IsNumeric(PlayerName))
        return strval(PlayerName);
    else
    {
        new found=0, id;
        for(new i=0; i <= MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                new foundname[MAX_PLAYER_NAME];
                GetPlayerName(i, foundname, MAX_PLAYER_NAME);
                new namelen = strlen(foundname);
                new bool:searched=false;
                for(new pos=0; pos <= namelen; pos++)
                {
                    if(searched != true)
                    {
                        if(strfind(foundname,PlayerName,true) == pos)
                        {
                            found++;
                            id = i;
                        }
                    }
                }
            }
        }
        if(found == 1)
            return id;
        else
            return INVALID_PLAYER_ID;
    }
}

stock bigstr(const string[], &idx)
{
    new length = strlen(string);
    while ((idx < length) && (string[idx] <= ' '))
    {
        idx++;
    }
    new offset = idx;
    new result[128];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
        result[idx - offset] = string[idx];
        idx++;
    }
    result[idx - offset] = EOS;
    return result;
}

stock ReturnPlayerZone(playerid)
{
    new playerzone[24] = "Desconhecido";
    for(new j; j < sizeof(zones); j++)
    {
        if(IsPlayerInZone(playerid,j))
        {
            memcpy(playerzone, zones[j][zone_name], 0, 108);
            break;
        }
    }
    return playerzone;
}


stock LimparChat(playerid)
{
    for(new limpar = 0; limpar <= 11; limpar++)
        SendClientMessage(playerid,COLOR_WHITE," ");
}

stock MeuEmail(playerid,numero)
{
    new email[32],email2[256];
    format(email,32,"/RPG/emails/%s.ini",Player[playerid][pName]);

    format(email2,256,"{C2A2DA}%d - %s\n",strval(Emails[numero]),dini_Get(email,Emails[numero]));

    ShowPlayerDialog(playerid, 30, DIALOG_STYLE_MSGBOX, "Caixa de entrada", email2, "Voltar", "Sair");
}

stock EnviarEmail(playerid,const string[])
{
    new email[128],str[256];
    format(email,128,"/RPG/emails/%s.ini",Player[playerid][pDest]);
    if(!dini_Exists(email))
    {
        for(new i=0;i<sizeof(Emails);i++)
            dini_Set(email,Emails[i],"Vazio");
    }
    else
    {
        format(str,256,"%s - Remetente : %s",string,ReturnPlayer(playerid));
        for(new i=0;i<sizeof(Emails);i++)
            if(strcmp(dini_Get(email,Emails[i]),"Vazio",true)==0)
            {
                new giveid = ReturnUser(Player[playerid][pDest]);
                if(IsPlayerConnected(giveid))
                    GameTextForPlayer(giveid, "Voce recebeu um novo e-mail.", 5000, 5);
                dini_Set(email,Emails[i],str);
                return 1;
            }

        return SendClientMessage(playerid,COLOR_RED,"[ERRO] A caixa de entrada estб lotada.");
    }
    return 1;
}

stock MinhaOrg(playerid)
{
    new org[128],org2[128],string[1024],Org[32],tmp[32],giveid;
    format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[Player[playerid][pMember]]);
    string = " ";
    Org = OrgsNames[GetPlayerOrg(playerid)];
    for(new i=0;i<sizeof(OrgsCargos);i++)
    {
        format(tmp,32,"%s",dini_Get(org,OrgsCargos[i]));
        giveid = ReturnUser(tmp);
        if(IsPlayerConnected(giveid))
            format(org2,128,"{C2A2DA}%s - %s - {00D900}Online\n",OrgsCargos[i],dini_Get(org,OrgsCargos[i]));
        else if(strcmp(dini_Get(org,OrgsCargos[i]),"Nenhum",true)==0)
                format(org2,128,"{C2A2DA}%s - Nenhum\n",OrgsCargos[i]);
        else
            format(org2,128,"{C2A2DA}%s - %s - {AA3333}Offline\n",OrgsCargos[i],dini_Get(org,OrgsCargos[i]));
        if(strlen(string) < 1000)
            format(string,2048,"%s %s",string, org2);
    }
    ShowPlayerDialog(playerid, 24, DIALOG_STYLE_MSGBOX, Org, string, "Fechar", "");
}

stock AddMembro(giveid)
{
    new org[128];
    format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[Player[giveid][pMember]]);
    if(!dini_Exists(org))
    {
        dini_Create(org);
        for(new i=0;i<sizeof(OrgsCargos);i++)
        {
            if(i==0 && Player[giveid][pLeader] != 0)
               dini_Set(org,"Lнder",Player[giveid][pName]);
            else
                dini_Set(org,OrgsCargos[i],"Nenhum");
        }
    }
    else
    {
        new l;
        if(Player[giveid][pRank] == 6)
            l=0;
        else if(Player[giveid][pRank] < 4)
            l=3;

        for(new i=l;i<sizeof(OrgsCargos);i++)
            if(strcmp(dini_Get(org,OrgsCargos[i]),"Nenhum",true)==0)
                return dini_Set(org,OrgsCargos[i],Player[giveid][pName]);

        return SendClientMessage(giveid,COLOR_RED,"[ERRO] Esta organizaзгo jб atingiu o limite de membros.");
    }
    return 1;
}

stock DelMembro(giveid)
{
    new org[128];
    format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[Player[giveid][pMember]]);

    for(new i=0;i<sizeof(OrgsCargos);i++)
        if(strcmp(dini_Get(org,OrgsCargos[i]),Player[giveid][pName],true)==0)
            return dini_Set(org,OrgsCargos[i],"Nenhum");

    return 1;
}

stock DelApreendido(carid)
{
    new newstring[128];
    for(new i=0;i<sizeof(Apreendido);i++)
    {
        format(newstring,128,"%s - %s",numplate[carid],vOwner[carid]);
        if(strcmp(dini_Get(APRE_FILE,Apreendido[i]),newstring,true)==0)
            return dini_Set(APRE_FILE,Apreendido[i],"******");
    }

    return 1;
}

stock AddApreendido(playerid,carid)
{
    if(!dini_Exists(APRE_FILE))
    {
        dini_Create(APRE_FILE);
        for(new i=0;i<sizeof(Apreendido);i++)
            dini_Set(APRE_FILE,Apreendido[i],"******");
    }
    else
    {
        new newstring[128];
        format(newstring,128,"%s - %s",numplate[carid],vOwner[carid]);
        for(new i=0;i<sizeof(Apreendido);i++)
        {
            if(strcmp(dini_Get(APRE_FILE,Apreendido[i]),newstring,true)==0)
                return SendClientMessage(playerid,COLOR_RED,"[ERRO] Este veнculo jб estб apreendido.");

            if(strcmp(dini_Get(APRE_FILE,Apreendido[i]),"******",true)==0)
                return dini_Set(APRE_FILE,Apreendido[i],newstring);
        }

        return SendClientMessage(playerid,COLOR_RED,"[ERRO] O pбtio jб estб cheio.");
    }
    return 1;
}

forward Pedindo(playerid,jobid);
public Pedindo(playerid,jobid)
{
    if(Solicitando[playerid][jobid] == true)
        return SendClientMessage(playerid,COLOR_RED,"[ERRO] Vocк jб solicitou este serviзo. Aguarde.");

    new string[128];
    format(string, sizeof(string), "%s estб solicitando os serviзos de um %s.", ReturnPlayer(playerid),JobsNames[jobid]);
    SendJobMessage(jobid, COLOR_AZTECAS, string);
    format(string, sizeof(string), "Vocк solicitou os serviзos de um %s. Aguarde...", JobsNames[jobid]);
    SendClientMessage(playerid, COLOR_AZTECAS, string);
    Solicitando[playerid][jobid] = true;

    return 1;
 }

forward Aceitando(playerid,giveid,jobid);
public Aceitando(playerid,giveid,jobid)
{
    if(Solicitando[giveid][jobid] == false)
        return SendClientMessage(playerid,COLOR_RED,"[ERRO] Este jogador nгo solicitou seus serviзos.");

    if(PedidoAceito[playerid] < 900)
        return SendClientMessage(playerid,COLOR_RED,"[ERRO] Vocк jб aceitou um serviзo. Aguarde.");

    if(playerid == giveid)
        return SendClientMessage(playerid,COLOR_RED,"[ERRO] Vocк nгo pode aceitar seu prуprio pedido.");

    new string[128];

    PedidoAceito[playerid] = giveid;
    TempoPedido[playerid] = 0;
    SetPlayerMarkerForPlayer(playerid, giveid, COLOR_LIGHTRED);
    SetPlayerMarkerForPlayer(playerid, giveid, COLOR_LIGHTRED);

    format(string, sizeof(string), "%s aceitou o pedido de %s.", ReturnPlayer(playerid),ReturnPlayer(giveid));
    SendJobMessage(jobid, COLOR_AZTECAS, string);
    format(string, sizeof(string), "%s aceitou seu pedido de %s. Aguarde no local.", ReturnPlayer(playerid),JobsNames[jobid]);
    SendClientMessage(giveid,COLOR_AZTECAS,string);
    return 1;
}

forward Cancelando(playerid,jobid);
public Cancelando(playerid,jobid)
{
    if(Solicitando[playerid][jobid] == false && Player[playerid][pJob] != jobid)
        return SendClientMessage(playerid,COLOR_RED,"[ERRO] Vocк nгo solicitou este serviзo.");

    Solicitando[playerid][jobid] = false;

    for(new i=0;i<=HighestID;i++)
    {
        if(Player[i][pJob] == jobid)
        {
            if(PedidoAceito[i] == playerid)
            {
                if(SpawnTime[playerid] <= 0 && Player[playerid][pJob] != DESEMPREGADO)
                {
                    new string[60];
                    format(string, sizeof(string), "%s cancelou o pedido.", ReturnPlayer(playerid));
                    SendJobMessage(jobid,COLOR_AZTECAS,string);
                }
                PedidoAceito[i] = 900;
                TempoPedido[i] = 0;
                SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
                SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
                SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
                return 1;
            }
        }
    }
    return 1;
}

forward Encontrar(playerid,giveid,erro);
public Encontrar(playerid,giveid,erro)
{
    new Float:PosP[3],Float:PosG[3];
    new Float:dist,Float:y,Float:x,string[128],pc[9];
    GetPlayerPos(playerid,PosG[0],PosG[1],PosG[2]);
    GetPlayerPos(giveid,PosP[0],PosP[1],PosP[2]);

    new rand = random(4);

    if(rand < 3)
    {
        x = floatabs(floatsub(PosP[0]+erro+random(5),PosG[0]));
        y = floatabs(floatsub(PosP[1]+erro+random(5),PosG[1]));
    }
    else
    {
        x = floatabs(floatsub(PosP[0],PosG[0]+erro+random(5)));
        y = floatabs(floatsub(PosP[1],PosG[1]+erro+random(5)));
    }

    dist = floatsqroot(floatadd(floatpower(x,2), floatpower(y,2)));

    if(PosP[0] > PosG[0] && PosP[1] > PosG[1])
        pc = "Nordeste";
    else if(PosP[0] > PosG[0] && PosP[1] < PosG[1])
        pc = "Sudeste";
    else if(PosP[0] < PosG[0] && PosP[1] > PosG[1])
        pc = "Noroeste";
    else if(PosP[0] < PosG[0] && PosP[1] < PosG[1])
        pc = "Sudoeste";

    if(GetPlayerInterior(giveid) > 0)
        format(string, sizeof(string), "%s estб а aproximadamente %.1f metros а %s. (Em interior)", ReturnPlayer(giveid),dist,pc);
    else
        format(string, sizeof(string), "%s estб а aproximadamente %.1f metros а %s.", ReturnPlayer(giveid),dist,pc);

    SendClientMessage(playerid,COLOR_AZTECAS,string);
}

forward Punir(playerid,adm,motivo[]);
public Punir(playerid,adm,motivo[])
{
    new string[128];
    new motivo2[24];
    format(motivo2,24,motivo);
    if(strcmp(motivo,"dm", true) == 0)
    {
        motivo2 = "Death Match";
        Bangu(playerid,adm,60,motivo2);
        Aviso(playerid,adm,motivo2);
    }

    if(strcmp(motivo,"an", true) == 0)
    {
        motivo2 = "Anъncio Indevido";
        Bangu(playerid,adm,30,motivo2);
    }

    if(strcmp(motivo,"antirp", true) == 0)
    {
        motivo2 = "Anti-RP";
        Bangu(playerid,adm,60,motivo2);
        Aviso(playerid,adm,motivo2);
    }

    if(strcmp(motivo,"abuso", true) == 0)
    {
        motivo2 = "Abuso de bug";
        Bangu(playerid,adm,90,motivo2);
        Aviso(playerid,adm,motivo2);
    }

    format(string, sizeof(string), "-OperServ- %s foi punido por %s. Motivo: %s", ReturnPlayer(playerid), ReturnPlayer(adm),motivo2);
    SendClientMessageToAll(COLOR_OOC,string);
    WriteLog("Admins2",string);
    Kick(playerid);
    return 1;
}

forward Bangu(playerid,adm,tempo,motivo[]);
public Bangu(playerid,adm,tempo,motivo[])
{
    new string[128];
    WantedPoints[playerid] = 0;
    SetPlayerInterior(playerid, 0);
    Player[playerid][pInt] = 0;
    Player[playerid][pJailed] = 2;
    Player[playerid][pJailTime] += tempo*60;
    Player[playerid][pCrimes2] = 0;
    ResetPlayerWeapons(playerid);
    nobangu[playerid] = true;
    format(Player[playerid][JailReason],32,"%s - %s", motivo,Player[adm][pName]);
    SafeSetPlayerPos(playerid, 107.2300,1920.6311,18.5208);
    SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
    GameTextForPlayer(playerid, "~w~bem vindo ao ~n~~r~bangu, repense suas atitudes", 5000, 6);
    format(string, 128, "[BANGU] %s foi para o bangu por %s |Motivo: %s|", Player[playerid][pName], Player[adm][pName], motivo);
    BroadCast(COLOR_OOC,string);
    WriteLog("Admins2",string);
    return 1;
}

forward Aviso(playerid,adm,motivo[]);
public Aviso(playerid,adm,motivo[])
{
    new string[128];
    Player[playerid][pWarns] += 1;
    if(Player[playerid][pWarns] == 1)
        format(Player[playerid][pAviso1],32,"%s - %s", motivo,Player[adm][pName]);
    else if(Player[playerid][pWarns] == 2)
        format(Player[playerid][pAviso2],32,"%s - %s", motivo,Player[adm][pName]);
    if(Player[playerid][pWarns] > 2)
    {
        format(Player[playerid][pAviso1],2," ");
        format(Player[playerid][pAviso2],2," ");
        format(string, sizeof(string), "-OperServ- %s foi banido por %s, razгo: %s (3 avisos) - Tempban de 10 dias", Player[playerid][pName], Player[adm][pName], motivo);
        WriteLog("admins", string);
        Player[playerid][pWarns] = 0;
        BanExtend(adm, playerid, "3 avisos", 10);
        return 1;
    }
    format(string, sizeof(string), "Vocк execultou uma advertкncia sobre %s, razгo: %s", Player[playerid][pName], motivo);
    SendClientMessage(adm, COLOR_ORANGE, string);
    format(string, sizeof(string), " %s foi advertido por %s, razгo: %s",  Player[playerid][pName], Player[adm][pName], motivo);
    SendClientMessageToAll(COLOR_ORANGE, string);
    WriteLog("Admins2",string);
    return 1;
}
[/i]



Ai estб os errors... Eu quero esse gm pra ser base e aprender a codar usando ele ! Nгo irei tirar os /creditos nem nada ! Apenas quero aprender a codar utilizando ele ! Obrigado espero que vocкs me entendao ! grato...


________________
Skype: gustavo.noz
Reply
#2

LoL Desiste Meu Fi""
Reply
#3

MANO, quando dб 26 erros quando vai compilar, quer dizer que tem alguma chave aberta que nao foi fechada ou vice versa... Dб uma conferida ae nas chaves!
Reply
#4

Affs, double post sem qerer '-'
Reply
#5

Quote:
Originally Posted by HeyHoLetsGo
Посмотреть сообщение
MANO, quando dб 26 erros quando vai compilar, quer dizer que tem alguma chave aberta que nao foi fechada ou vice versa... Dб uma conferida ae nas chaves!
O Problema pode nгo ser chaves nгo й sempre que dб 26 erros que й chaves, isso й o mбximo de erros que o Pawno mostra.
Reply
#6

Coloca isso no final do seu Gameode.

PHP код:
public GivePlayerGP(playeridgp)
{
    
GP[playerid] += gp;
    return 
1;
}
stock AddFlitsPaal(playeridmodelidFloat:pxFloat:pyFloat:pzradiusspeed)
{
    new 
fine[MAX_PLAYERS];
     new 
str[256];
     
//new str2[256];
     
new newcar GetVehicleModel(GetPlayerVehicleID(playerid));

     if(
objectcreated!=maxobject)
      {
        
CreateDynamicObject(modelidpxpypz-200.00.010);
         
objectcreated++;
         
Create3DTextLabel("Radar !!\n 100 KM/H "0xFFFFFFAApxpypz+15001);
      }
    if((
distance1[playerid]) > speed)
      {
        if(
IsPlayerInCircle(playeridpxpyradius)  && GetPlayerState(playerid)== PLAYER_STATE_DRIVER)
        {
                if(!
IsACop(playerid))
                {
                    if(!
IsAPlane(newcar))
                    {

                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
fine[playerid] = ((distance1[playerid]*17/10)-speed);
                         
PlayerPlaySound(playerid11320.00.00.0);
                        
format(str,sizeof(str), "{FFFF00}[INFO-RADAR] {FF0000}O Limite de velocidade й {FFFF00}%d KM/H {FF0000}Voce Passou a {FFFF00}%d KM/H {FF0000}e foi {FFFF00}Multado !",speed*2distance1[playerid]*2,fine[playerid]);
                         
SendClientMessage(playeridCOLOR_GREENstr);
                         
Multa[playerid] += 1;
                        
SendClientMessage(playeridCOLOR_GREEN"{FFFF00}[INFO-RADAR]{FF0000} Para pagar a multa, vб atй o balcгo da DP e digite {FFFF00}/pagarmulta.");
                    }
                }
            }
        }
    }
IsNumeric(const string[])
{
    for (new 
0strlen(string); ji++)
    {
        if (
string[i] > '9' || string[i] < '0') return 0;
    }
    return 
1;
}
stock GetPlayerOrg(playerid)
{
    new 
org;
    if(
PlayerInfo[playerid][pLider] > 0)
    {
        
org PlayerInfo[playerid][pLider];
        return 
org;
    }
    if(
PlayerInfo[playerid][pMembro] > 0)
    {
        
org PlayerInfo[playerid][pMembro];
        return 
org;
    }
    return 
0;

Vai diminuir a metade dos erros. Me adiciona no MSN mateus.qzs@hotmail.com, irei arrumar o resto pra vocк ! =D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)