Ajuda com audio
#1

Eu vi o tutorial de como por o som ao logar no server.. o problema do tutorial, й que ele criou a public OnPlayerConnect.. e colocou sу aquilo lб.. mas no meu caso eu ja tenho um monte de coisas nessa public, e nгo sei aonde por isso:

Код:
 {
  PlayAudioStreamForPlayer(playerid,"http://dc128.4shared.com/img/63947112/1ff26484/dlink__2Fdownload_2FSxYuNriz_3Ftsid_3D20111219-174202-d1dea18a/preview.mp3") // Neste Exemplo quando o Player entra no servidor ira tocar a musica da Url.
 SetTimer("Pararmusica",60000,false); // A musica ficara tocando 1 minuto.
 return 0;
 }
forward Pararmusica(playerid);
public Pararmusica(playerid)
{
  StopAudioStreamForPlayer(playerid); Ira fazer a musica parar de tocar.
  return 0;
Alguem ajuda?
Se eu ponho em algum lugar da erro, pq n estб adequado ao meu GM..

tuto: https://sampforum.blast.hk/showthread.php?tid=322294
Reply
#2

public onplayerconnect(playerid)
{
//aki terб todos os outros cуdigos deixe eles apenas retire o 'return 1;'
//cole aqui o playaudiostream e o settimer
return 1;
}
forward Pararmusica(playerid);
public Pararmusica(playerid)
{
StopAudioStreamForPlayer(playerid); Ira fazer a musica parar de tocar.
return 0;
}
Reply
#3

n da cara. da 26 errors..
olha essa й minha public sem esse codigo ai.

Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 762, 1005.2109, -2273.3594, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 980.8047, -2186.8984, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1000.1328, -2132.2656, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1015.9531, -2078.9766, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1023.5938, -2050.6875, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1011.8594, -2043.5000, 16.0859, 0.25);
    if(IsPlayerNPC(playerid)){SpawnPlayer(playerid);return 1;}
    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, sizeof(plname));
    if(Security != 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Caso desrespeite alguma regra, vocк serб punido de acordo com seu erro.");
        Kick(playerid);
        return 1;
    }
    new namestring = strfind(plname, "_", true);
    if(namestring == -1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Imigraзгo Believe RP: Seu nome nгo foi aceito em nosso Server.");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dica: Seu nome deve estar no formato: Nome_Sobrenome.");
        Kick(playerid);
        return 1;
    }
    tGP2[playerid] = TextDrawCreate(499.600,101.0000," ");
    TextDrawColor(tGP2[playerid], COLOR_GREEN);
    TextDrawLetterSize(tGP2[playerid], 0.575, 2.1);
    TextDrawFont(tGP2[playerid], 3);
    TextDrawBackgroundColor(tGP2[playerid], 0x00000AA);
    TextDrawSetOutline(tGP2[playerid], 2);

    tGP3[playerid] = TextDrawCreate(499.600,130.0000," ");
    TextDrawColor(tGP3[playerid], COLOR_GREEN);
    TextDrawLetterSize(tGP3[playerid], 0.575, 2.1);
    TextDrawFont(tGP3[playerid], 3);
    TextDrawBackgroundColor(tGP3[playerid], 0x00000AA);
    TextDrawSetOutline(tGP3[playerid], 2);

    GPSPos[playerid] = 0;
    PlayerIsDead[playerid] = 0;
    ApertarFnaMorte[playerid] = 0;
    Hospital[playerid] = 0;
    RouboPos[playerid] = 0;
    votou[playerid] = false;
    Conce[playerid] = 0;
    FicarRoco[playerid] = false;

//-----------------------[Conce]------------------------------------------------
    LoadPlayerVehicle(playerid);
    CarColor[playerid][0] = 1;
    CarColor[playerid][1] = 1;
    for(new v = 1; v < MAX_VEHICLES; v++) LockVehicle(v);

    new playername[MAX_PLAYER_NAME],gw;
//------------------------------------------------------------------------------

    StoreRobed[playerid] = 0;
    StoreRobedd[playerid] = 0;
    StoreRobeddd[playerid] = 0;
    Robber[playerid] = 0;
    Robberr[playerid] = 0;
    Robberrr[playerid] = 0;
    have[playerid] = 0;
    havee[playerid] = 0;
    haveee[playerid] = 0;
    Roubopref[playerid] = 0;
    Roubo[playerid] = 0;
    hava[playerid] = 0;
    EntrandoNoCarro[playerid] = 0;

    SetPlayerTeam(playerid, playerid*2);
    SetPlayerMapIcon(playerid, 1, 279.3333,-1434.8361,13.9622,17,0);          // 24-7
    SetPlayerMapIcon(playerid, 2, 1352.3300,-1755.7100,13.3530,17,0);         // 24-7
    SetPlayerMapIcon(playerid, 3, 1315.4900,-900.8430,39.5781,17,0);          // 24-7
    SetPlayerMapIcon(playerid, 9, 2501.8171,-1495.0284,24.0000,17,0);         // 24-7
    SetPlayerMapIcon(playerid, 36, 2424.3491,-1922.7054,13.5469,17,0);        // 24-7
    SetPlayerMapIcon(playerid, 4, 952.5583,-909.3518,45.7656,36,0);           // autoescola
    SetPlayerMapIcon(playerid, 5, 1750.9022,-2054.1663,14.1010,51,0);         // caminhao
    SetPlayerMapIcon(playerid, 6, 1933.4171,-1864.4463,13.5619,6,0);          // Lojas de armas
    SetPlayerMapIcon(playerid, 7, 1117.4230,-2037.0621,78.7500, 56, 0 );      // pref
    SetPlayerMapIcon(playerid, 8, 2029.9769,-1406.1050,17.2170,22,0);         // Hospital
    SetPlayerMapIcon(playerid, 10, 1561.4166,-1665.8405,28.3956,30,0);        // DP
    SetPlayerMapIcon(playerid, 11, 1450.629882,-1095.147338,17.687129,22,0);  // Farmбcia
    SetPlayerMapIcon(playerid, 12, 1831.364868,-1995.974731,13.546875,58,0);  // Nem sei
    SetPlayerMapIcon(playerid, 13, 2245.7581,-1660.3862,15.2865,45,0);        // Lojas D.s
    SetPlayerMapIcon(playerid, 14, 1462.5256,-1012.4059,26.8438,52,0);        // Banco
    SetPlayerMapIcon(playerid, 15, 375.3680,-2087.7510,7.8359,9,0);           // pesca
    SetPlayerMapIcon(playerid, 16, 1631.9384,-1170.1406,24.0781,25,0);        // Loteria
    SetPlayerMapIcon(playerid, 18 ,1257.6265,-785.2055,92.0302,43,0);         // Comorra
    SetPlayerMapIcon(playerid, 19, 554.0701,-1284.5648,17.2482,12,0);         // conce
    SetPlayerMapIcon(playerid, 21, 333.9397,-1519.0159,35.8672,30,0);         // FBI
    SetPlayerMapIcon(playerid, 23, 1653.9097,-1655.0175,22.5156,30,0);        // PR
    SetPlayerMapIcon(playerid, 25, 641.2360,-1355.3855,13.3958,35,0);         // anuncio
    SetPlayerMapIcon(playerid, 26, 2648.7905,-2018.9167,69.0208, 27, 0);      // transfender
    SetPlayerMapIcon(playerid, 27, 1040.1967,-1039.0023,69.0938, 27, 0);      // transfender
    SetPlayerMapIcon(playerid, 28, -2707.3838,220.8588,42.8703, 27, 0);       // transfender
    SetPlayerMapIcon(playerid, 30, 1836.1659,-1682.4061,13.3593,48,0);        // Alhambra
    SetPlayerMapIcon(playerid, 31, 1022.4554,-1121.7389,23.8718,48,0);        // Boate Pimp
    SetPlayerMapIcon(playerid, 32,1310.0320,-1367.6229,13.5382,23,0);         // paintball
    SetPlayerMapIcon(playerid, 33,2084.7429,-2079.8259,13.5469,24,0);         // paintball
    SetPlayerMapIcon(playerid, 34,1533.4620,-1450.8073,12.8949,42,0);         // taxi
   // SetPlayerMapIcon(playerid, 35,1371.2081,-1647.4215,9.5000,22,0);         // hostepal


    if(donomorro == 0)
    {
    GangZoneShowForPlayer(playerid, GZMorro, 0xC0C0C0AA);
    }
    if(donomorro == 1)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_GROVE_COLOR);
    }
    if(donomorro == 2)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_BALLAS_COLOR);
    }
    if(donomorro == 3)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_VAGOS_COLOR);
    }
    if(donomorro == 4)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_AZTECAS_COLOR);
    }
    if(donomorro == 5)
    {
    GangZoneShowForPlayer(playerid, GZMorro, COLOR_LIGHTBLUE);
    }
    if(donomorro == 6)
    {
    GangZoneShowForPlayer(playerid, GZMorro, COLOR_RED);
    }
    if(donomorro == 7)
    {
    GangZoneShowForPlayer(playerid, GZMorro, LARANJA1);
    }
    if(donomorro == 8)
    {
    GangZoneShowForPlayer(playerid, GZMorro, 0xC0C0C0AA);
    }
    if(donomorro == 9)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_LOW_COLOR);
    }
    if(donomorro == 10)
    {
    GangZoneShowForPlayer(playerid, GZMorro, PURPLE);
    }

    if(donoskate == 0)
    {
    GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
    }
    if(donoskate == 1)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
    }
    if(donoskate == 2)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
    }
    if(donoskate == 3)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
    }
    if(donoskate == 4)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
    }
    if(donoskate == 5)
    {
    GangZoneShowForPlayer(playerid, GZSkate, COLOR_LIGHTBLUE);
    }
    if(donoskate == 6)
    {
    GangZoneShowForPlayer(playerid, GZSkate, COLOR_RED);
    }
    if(donoskate == 7)
    {
    GangZoneShowForPlayer(playerid, GZSkate, LARANJA1);
    }
    if(donoskate == 8)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_LOW_COLOR);
    }
    if(donoskate == 9)
    {
    GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
    }
    if(donoskate == 10)
    {
    GangZoneShowForPlayer(playerid, GZSkate, PURPLE);
    }

    if(donoshop == 0)
    {
    GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
    }
    if(donoshop == 1)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_GROVE_COLOR);
    }
    if(donoshop == 2)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_BALLAS_COLOR);
    }
    if(donoshop == 3)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_VAGOS_COLOR);
    }
    if(donoshop == 4)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_AZTECAS_COLOR);
    }
    if(donoshop == 5)
    {
    GangZoneShowForPlayer(playerid, GZShop, COLOR_LIGHTBLUE);
    }
    if(donoshop == 6)
    {
    GangZoneShowForPlayer(playerid, GZShop, COLOR_RED);
    }
    if(donoshop == 7)
    {
    GangZoneShowForPlayer(playerid, GZShop, LARANJA1);
    }
    if(donoshop == 8)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_LOW_COLOR);
    }
    if(donoshop == 9)
    {
    GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
    }
    if(donoshop == 10)
    {
    GangZoneShowForPlayer(playerid, GZShop, PURPLE);
    }

    if(donoaero == 0)
    {
    GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
    }
    if(donoaero == 1)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_GROVE_COLOR);
    }
    if(donoaero == 2)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_BALLAS_COLOR);
    }
    if(donoaero == 3)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_VAGOS_COLOR);
    }
    if(donoaero == 4)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_AZTECAS_COLOR);
    }
    if(donoaero == 5)
    {
    GangZoneShowForPlayer(playerid, GZAero, COLOR_LIGHTBLUE);
    }
    if(donoaero == 6)
    {
    GangZoneShowForPlayer(playerid, GZAero, COLOR_RED);
    }
    if(donoaero == 7)
    {
    GangZoneShowForPlayer(playerid, GZAero, LARANJA1);
    }
    if(donoaero == 8)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_LOW_COLOR);
    }
    if(donoaero == 8)
    {
    GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
    }
    if(donoaero == 10)
    {
    GangZoneShowForPlayer(playerid, GZAero, PURPLE);
    }

    if(donopier == 0)
    {
    GangZoneShowForPlayer(playerid, GZPier, 0xC0C0C0AA);
    }
    if(donopier == 1)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_GROVE_COLOR);
    }
    if(donopier == 2)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_BALLAS_COLOR);
    }
    if(donopier == 3)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_VAGOS_COLOR);
    }
    if(donopier == 4)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_AZTECAS_COLOR);
    }
    if(donopier == 5)
    {
    GangZoneShowForPlayer(playerid, GZPier, COLOR_LIGHTBLUE);
    }
    if(donopier == 6)
    {
    GangZoneShowForPlayer(playerid, GZPier, COLOR_RED);
    }
    if(donopier == 7)
    {
    GangZoneShowForPlayer(playerid, GZPier, LARANJA1);
    }
    if(donopier == 8)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_LOW_COLOR);
    }
    if(donopier == 8)
    {
    GangZoneShowForPlayer(playerid, GZPier, 0xC0C0C0AA);
    }
    if(donopier == 10)
    {
    GangZoneShowForPlayer(playerid, GZPier, PURPLE);
    }

    if(donomateriala == 0)
    {
    GangZoneShowForPlayer(playerid, GZMateriala, 0x00000087);
    }
    if(donomateriala == 1)
    {
    GangZoneShowForPlayer(playerid, GZMateriala, 0x00000087);
    }

    if(donoFa1 == 0)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0xC0C0C0AA);
    }
    if(donoFa1 == 1)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0x00400096);
    }
    if(donoFa1 == 2)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0x80400096);
    }

    if(donoFa2 == 0)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0xC0C0C0AA);
    }
    if(donoFa2 == 1)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0x00400096);
    }
    if(donoFa2 == 2)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0x80400096);
    }

    gActivePlayers[playerid]++;
    numplayers++;
    ativedmenu[playerid] = 0;
    GangDead[playerid] = 0;
    TruckMission[playerid] = 0; BusMission[playerid] = 0; GasMission[playerid] = 0; PaperMission[playerid] = 0; LixoMission[playerid] = 0; PaintOffer[playerid] = 255;
    SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
    GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; AdvOffer[playerid] = 999; AdvPrice[playerid] = 0;
    ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;
    KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
    CP[playerid] = 0; Robbed[playerid] = 0; Robbedd[playerid] = 0; Robbeddd[playerid] = 0; Roubbed[playerid] = 0; SpawnChange[playerid] = 1;
    CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
    RobbedTime[playerid] = 0; RobbedTimee[playerid] = 0; RobbedTimeee[playerid] = 0; RoubbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
    STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
    RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
    TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
    RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
    DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
    Invite[playerid] = 0; InviteJob[playerid] = 0;
    DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
    DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; ConnectedToPCC[playerid] = 0;
    JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0; GotHitt[playerid] = 0;
    WantedPoints[playerid] = 0; GoChase[playerid] = 999; GoChasee[playerid] = 999; GetChased[playerid] = 999;  GetChasedd[playerid] = 999; PlacedNews[playerid] = 0;
    OnDuty[playerid] = 0; TestFishes[playerid] = 0;
    BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0; Rope[playerid] = 0; Cigarro[playerid] = 0;
    SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
    TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0; BancoCallTime[playerid] = 0; LotericaCallTime[playerid] = 0;  PostoNorteCallTime[playerid] = 0;  PostoSulCallTime[playerid] = 0; SalaCallTime[playerid] = 0; RouboCallTime[playerid] = 0; PrefCallTime[playerid] = 0; DepositoCallTime[playerid] = 0;
    FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;
    Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
    Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
    Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0;
    WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
    PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;
    gLastCar[playerid] = 0;
    gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; BigSms[playerid] = 0; BigMp[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
    gSpeedo[playerid] = 0; gGas[playerid] = 0;
    gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;
    gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
    PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
    StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
    MatsHolding[playerid] = 0; TutTime[playerid] = 0;
    TaxiAccepted[playerid] = 999;
    PlayerInfo[playerid][pDolar] = dollah; NoFuel[playerid] = 0;
    HireCar[playerid] = 299; PlayersChannel[playerid] = 999;
    FecharPortao1[playerid] = 255; FecharPortao4[playerid] = 255;
    FecharPortao5[playerid] = 255; FecharPortao6[playerid] = 255;
    FecharPortao9[playerid] = 255; FecharPortao10[playerid] = 255; FecharPortao11[playerid] = 255; FecharPortao12[playerid] = 255; FecharPortao13[playerid] = 255; FecharPortao14[playerid] = 255;
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
    Locator[playerid] = 0; PizzaCallTime[playerid] = 0; sPizza[playerid] = 0; bPizza[playerid] = 0;
    WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; AnuncioTime[playerid] = 0; ReduceTime[playerid] = 0; BombTime[playerid] = 0; BombaTime[playerid] = 0;
    Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; CuraAcc[playerid] = 999;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
    PlayerInfo[playerid][pLevel] = 0;
    InAFoodPlace[playerid] = 0;
    PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pDonateRank] = 0;
    PlayerInfo[playerid][gPupgrade] = 0;
    PlayerInfo[playerid][pConnectTime] = 0;
    PlayerInfo[playerid][pReg] = 0;
    PlayerInfo[playerid][pSex] = 0;
    PlayerInfo[playerid][pAge] = 0;
    PlayerInfo[playerid][pOrigin] = 0;
    PlayerInfo[playerid][pExp] = 0;
    PlayerInfo[playerid][pAccount] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pArrested] = 0;
    PlayerInfo[playerid][pWantedDeaths] = 0;
    PlayerInfo[playerid][pPhoneBook] = 0;
    PlayerInfo[playerid][pPhone] = 0;
    PlayerInfo[playerid][pLottoNr] = 0;
    PlayerInfo[playerid][pFishes] = 0;
    PlayerInfo[playerid][pBiggestFish] = 0;
    PlayerInfo[playerid][pJob] = 0;
    PlayerInfo[playerid][pPayCheck] = 0;
    PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[playerid][pCabecaValue] = 0;
    PlayerInfo[playerid][pJailed] = 0;
    PlayerInfo[playerid][pJailTime] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDrugs] = 0;
    PlayerInfo[playerid][pLeader] = 0;
    PlayerInfo[playerid][pMember] = 0;
    PlayerInfo[playerid][pFMember] = 255;
    PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pChar] = 23;
    PlayerInfo[playerid][pContractTime] = 0;
    PlayerInfo[playerid][pDetSkill] = 0;
    PlayerInfo[playerid][pSexSkill] = 0;
    PlayerInfo[playerid][pBoxSkill] = 0;
    PlayerInfo[playerid][pLawSkill] = 0;
    PlayerInfo[playerid][pMechSkill] = 0;
    PlayerInfo[playerid][pJackSkill] = 0;
    PlayerInfo[playerid][pCarSkill] = 0;
    PlayerInfo[playerid][pNewsSkill] = 0;
    PlayerInfo[playerid][pDrugsSkill] = 0;
    PlayerInfo[playerid][pCookSkill] = 0;
    PlayerInfo[playerid][pFishSkill] = 0;
    PlayerInfo[playerid][pSHealth] = 0.0;
    PlayerInfo[playerid][pHealth] = 50.0;
    PlayerInfo[playerid][pPos_x] = 1130.1013;
    PlayerInfo[playerid][pPos_y] = -2037.5076;
    PlayerInfo[playerid][pPos_z] = 69.0078;
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pModel] = 60;
    new randphone = 1000 + random(8999);
    PlayerInfo[playerid][pPnumber] = randphone;
    PlayerInfo[playerid][pPhousekey] = 255;
    PlayerInfo[playerid][pPayCheck] = 0;
    PlayerInfo[playerid][pPbiskey] = 255;
    PlayerInfo[playerid][pCarLic] = 0;
    PlayerInfo[playerid][pFlyLic] = 0;
    PlayerInfo[playerid][pBoatLic] = 0;
    PlayerInfo[playerid][pFishLic] = 0;
    PlayerInfo[playerid][pGunLic] = 0;
    PlayerInfo[playerid][pGun1] = 0;
    PlayerInfo[playerid][pGun2] = 0;
    PlayerInfo[playerid][pGun3] = 0;
    PlayerInfo[playerid][pGun4] = 0;
    PlayerInfo[playerid][pAmmo1] = 0;
    PlayerInfo[playerid][pAmmo2] = 0;
    PlayerInfo[playerid][pAmmo3] = 0;
    PlayerInfo[playerid][pAmmo4] = 0;
    PlayerInfo[playerid][pCarTime] = 0;
    PlayerInfo[playerid][pPayDay] = 0;
    PlayerInfo[playerid][pPayDayHad] = 0;
    PlayerInfo[playerid][pCDPlayer] = 0;
    PlayerInfo[playerid][pWins] = 0;
    PlayerInfo[playerid][pLoses] = 0;
    PlayerInfo[playerid][pAlcoholPerk] = 0;
    PlayerInfo[playerid][pDrugPerk] = 0;
    PlayerInfo[playerid][pMiserPerk] = 0;
    PlayerInfo[playerid][pPainPerk] = 0;
    PlayerInfo[playerid][pTraderPerk] = 0;
    PlayerInfo[playerid][pTut] = 0;
    PlayerInfo[playerid][pWarns] = 0;
    PlayerInfo[playerid][pVirWorld] = 0;
    PlayerInfo[playerid][pFuel] = 0;
    PlayerInfo[playerid][pMask] = 0;
    PlayerInfo[playerid][pInvWeapon] = 0;
    PlayerInfo[playerid][pInvAmmo] = 0;
    PlayerInfo[playerid][pSpeaker] = 0;
    PlayerInfo[playerid][pMaskuse] = 0;
    PlayerInfo[playerid][pRequestingBackup] = 0;
    PlayerInfo[playerid][pRoadblock] = 0;
    PlayerInfo[playerid][pDolar] = 0;
    PlayerInfo[playerid][pAdjustable] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pControleR] = 0;
    strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
    ClearCrime(playerid);
    ClearFishes(playerid);
    ClearCooking(playerid);
    ClearGroceries(playerid);
    ClearMarriage(playerid);
    new string[128];
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string), "Contas/%s.ini", plname);
    SendClientMessage(playerid, COLOR_YELLOW2, "Por favor aguarde...");
    PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
    SetPlayerCameraPos(playerid, 1778.8789,-1515.0527,60.0067);
    SetPlayerCameraLookAt(playerid, 1660.7501,-1411.7880,120.7915);

    SeeHUD[playerid] = false;

    if(fexist(string))
    {
        gPlayerAccount[playerid] = 1;
        new loginstring[128];
        new loginname[64];
        GetPlayerName(playerid,loginname,sizeof(loginname));
        format(loginstring,sizeof(loginstring),"Bem-Vindo ao Believe RP\nNome: %s\n\nPor favor insira sua senha:",loginname);
        ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Believe RP - Login",loginstring,"Logar","Sair");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        return 1;
    }
    else
    {
        gPlayerAccount[playerid] = 0;
        new regstring[128];
        new regname[64];
        GetPlayerName(playerid,regname,sizeof(regname));
        format(regstring,sizeof(regstring),"Bem-Vindo ao Believe RP\nConta nгo Registrada\nNome: %s\n\nPor favor insira sua senha:",regname);
        ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Believe RP - REGISTRO",regstring,"Registrar","Sair");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
    }
    GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
    if(strcmp(playername,"Batman",true) == 0 || strcmp(playername,"Rocky",true) == 0 || strcmp(playername,"Carl",true) == 0 || strcmp(playername,"aux",true) == 0 || strcmp(playername,"con",true) == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "Me xupa FIDAPUTA, Sua mгe й minha desgraзado.");
        Ban(playerid);
        return 1;
    }
    if(strfind(playername,"_",true,1)!=-1)
    gw=1;
    if(playername[strlen(playername)-1]=='_')
    gw=0;
    for(new i=0;i<strlen(playername);i++)
    if((playername[i]<='9')&&(playername[i]>='0'))
    gw=0;
    if(!gw)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "Imigraзгo Believe RP: Seu nome nгo foi aceito em nossa agкncia.");
        SendClientMessage(playerid, COLOR_YELLOW2, "Dica: Seu nome deve estar no formato: Nome_Sobrenome.");
        Kick(playerid);
    }
    return 1;
}
public JoinChannel(playerid, number, line[])
{
    if(IsPlayerConnected(playerid))
    {
        if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
        {
            JoinChannelNr(playerid, number);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   A senha do canal estб INCORRETA !");
        }
    }
    return 1;
}

public JoinChannelNr(playerid, number)
{
    if(IsPlayerConnected(playerid))
    {
        new string[256];
        new sendername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(PlayersChannel[playerid] < 999)
        {
            format(string, sizeof(string), "%s saiu do canal.", sendername);
            SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
            IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
        }
        new channel; channel = number; channel += 1;
        PlayersChannel[playerid] = number;
        IRCInfo[PlayersChannel[playerid]][iPlayers] += 1;
        new wstring[128];
        format(string, sizeof(string), "%s", sendername);
        strmid(wstring, string, 0, strlen(string), 255);
        if(strcmp(IRCInfo[number][iAdmin],wstring, true ) == 0 )
        {
            format(string, sizeof(string), "Vocк entrou no Canal IRC %d como Administrador.", channel);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
        else
        {
            format(string, sizeof(string), "Vocк entrou no Canal IRC %d, Admins: %s.", channel, IRCInfo[number][iAdmin]);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
        format(string, sizeof(string), "MOTD: %s.", IRCInfo[number][iMOTD]);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        format(string, sizeof(string), "(%s entrou no canal)", sendername);
        SendIRCMessage(number, COLOR_GREEN, string);
    }
    return 1;
}

public ClearMarriage(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhuma");
        strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
        PlayerInfo[playerid][pMarried] = 0;
    }
    return 1;
}

public ClearPaper(paper)
{
    new string[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Nenhum");
    PaperInfo[paper][PaperUsed] = 0;
    strmid(PaperInfo[paper][PaperMaker], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperTitle], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText1], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText2], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText3], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText4], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText5], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText6], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText7], string, 0, strlen(string), 255);
    SavePapers();
    return 1;
}

public ClearFamily(family)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pFMember] == family)
            {
                SendClientMessage(i, COLOR_LIGHTBLUE, "A famнlia em que vocк estava foi deletada pelo lнder da organizaзгo (saiu da famнlia)");
                PlayerInfo[i][pFMember] = 255;
            }
        }
    }
    new string[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Nenhum");
    FamilyInfo[family][FamilyTaken] = 0;
    strmid(FamilyInfo[family][FamilyName], string, 0, strlen(string), 255);
    strmid(FamilyInfo[family][FamilyMOTD], string, 0, strlen(string), 255);
    strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
    format(string, sizeof(string), "0xFF000069");
    strmid(FamilyInfo[family][FamilyColor], string, 0, strlen(string), 255);
    FamilyInfo[family][FamilyMembers] = 0;
    FamilyInfo[family][FamilySpawn][0] = 0.0;
    FamilyInfo[family][FamilySpawn][1] = 0.0;
    FamilyInfo[family][FamilySpawn][2] = 0.0;
    FamilyInfo[family][FamilySpawn][3] = 0.0;
    FamilyInfo[family][FamilyInterior] = 0;
    SaveFamilies();
    return 1;
}

public ClearCrime(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "********");
        strmid(PlayerCrime[playerid][pBplayer], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pVictim], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pAccusing], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pAccusedof], string, 0, strlen(string), 255);
    }
    return 1;
}

public FishCost(playerid, fish)
{
    if(IsPlayerConnected(playerid))
    {
        new cost = 0;
        switch (fish)
        {
            case 1:
            {
                cost = 1;
            }
            case 2:
            {
                cost = 3;
            }
            case 3:
            {
                cost = 3;
            }
            case 5:
            {
                cost = 5;
            }
            case 6:
            {
                cost = 2;
            }
            case 8:
            {
                cost = 8;
            }
            case 9:
            {
                cost = 12;
            }
            case 11:
            {
                cost = 9;
            }
            case 12:
            {
                cost = 7;
            }
            case 14:
            {
                cost = 12;
            }
            case 15:
            {
                cost = 9;
            }
            case 16:
            {
                cost = 7;
            }
            case 17:
            {
                cost = 7;
            }
            case 18:
            {
                cost = 10;
            }
            case 19:
            {
                cost = 4;
            }
            case 21:
            {
                cost = 3;
            }
        }
        return cost;
    }
    return 0;
}

public ClearFishes(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
        Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
        Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
        Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
    }
    return 1;
}

public ClearFishID(playerid, fish)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        switch (fish)
        {
            case 1:
            {
                strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight1] = 0;
                Fishes[playerid][pFid1] = 0;
            }
            case 2:
            {
                strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight2] = 0;
                Fishes[playerid][pFid2] = 0;
            }
            case 3:
            {
                strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight3] = 0;
                Fishes[playerid][pFid3] = 0;
            }
            case 4:
            {
                strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight4] = 0;
                Fishes[playerid][pFid4] = 0;
            }
            case 5:
            {
                strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight5] = 0;
                Fishes[playerid][pFid5] = 0;
            }
        }
    }
    return 1;
}

public ClearCooking(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Cooking[playerid][pCookID1] = 0; Cooking[playerid][pCookID2] = 0; Cooking[playerid][pCookID3] = 0;
        Cooking[playerid][pCookID4] = 0; Cooking[playerid][pCookID5] = 0;
        Cooking[playerid][pCWeight1] = 0; Cooking[playerid][pCWeight2] = 0; Cooking[playerid][pCWeight3] = 0;
        Cooking[playerid][pCWeight4] = 0; Cooking[playerid][pCWeight5] = 0;
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
    }
    return 1;
}

public ClearCookingID(playerid, cook)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        switch (cook)
        {
            case 1:
            {
                strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight1] = 0;
                Cooking[playerid][pCookID1] = 0;
            }
            case 2:
            {
                strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight2] = 0;
                Cooking[playerid][pCookID2] = 0;
            }
            case 3:
            {
                strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight3] = 0;
                Cooking[playerid][pCookID3] = 0;
            }
            case 4:
            {
                strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight4] = 0;
                Cooking[playerid][pCookID4] = 0;
            }
            case 5:
            {
                strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight5] = 0;
                Cooking[playerid][pCookID5] = 0;
            }
        }
    }
    return 1;
}

public ClearGroceries(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Groceries[playerid][pChickens] = 0; Groceries[playerid][pChicken] = 0;
        Groceries[playerid][pHamburgers] = 0; Groceries[playerid][pHamburger] = 0;
        Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
    }
    return 1;
}

public Lotto(number)
{
    new JackpotFallen = 0;
    new string[256];
    new winner[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Loteria News: O nъmero ganhador foi %d", number);
    OOCOff(ORANGE, string);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pLottoNr] > 0)
            {
                if(PlayerInfo[i][pLottoNr] == number)
                {
                    JackpotFallen = 1;
                    GetPlayerName(i, winner, sizeof(winner));
                    format(string, sizeof(string), "Loteria News: %s ganhou o packpage com R$ %d ! ! !", winner, Jackpot);
                    OOCOff(ORANGE, string);
                    format(string, sizeof(string), "Vocк ganhou R$ %d com seu ticket de loteria.", Jackpot);
                    SendClientMessage(i, COLOR_LIGHTBLUE, string);
                    ConsumingMoney[i] = 1;
                    GivePlayerGP(i, Jackpot);
                }
                else
                {
                    SendClientMessage(i, COLOR_LIGHTBLUE, "Vocк nгo ganhou a loteria com este Ticket, tente na prуxima.");
                }
            }
            PlayerInfo[i][pLottoNr] = 0;
        }
    }
    if(JackpotFallen)
    {
        new rand = random(5000); rand += 789;
        Jackpot = rand;
        SaveStuff();
        format(string, sizeof(string), "Loteria News: O packpage se inicializou com R$ %d", Jackpot);
        OOCOff(COLOR_WHITE, string);
    }
    else
    {
        new rand = random(600); rand += 158;
        Jackpot += rand;
        SaveStuff();
        format(string, sizeof(string), "Loteria News: O packpage teve foi altuado para R$ %d", Jackpot);
        OOCOff(COLOR_WHITE, string);
    }
    return 1;
}
Reply
#4

apenas copie isto e cole no lugar da sua public
pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid,"http://dc128.4shared.com/img/63947112/1ff26484/dlink__2Fdownload_2FSxYuNriz_3Ftsid_3D20111219-174202-d1dea18a/preview.mp3") // Neste Exemplo quando o Player entra no servidor ira tocar a musica da Url.
    SetTimer("Pararmusica",60000,false); // A musica ficara tocando 1 minuto.
    RemoveBuildingForPlayer(playerid, 762, 1005.2109, -2273.3594, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 980.8047, -2186.8984, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1000.1328, -2132.2656, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1015.9531, -2078.9766, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1023.5938, -2050.6875, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1011.8594, -2043.5000, 16.0859, 0.25);
    if(IsPlayerNPC(playerid)){SpawnPlayer(playerid);return 1;}
    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, sizeof(plname));
    if(Security != 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Caso desrespeite alguma regra, vocк serб punido de acordo com seu erro.");
        Kick(playerid);
        return 1;
    }
    new namestring = strfind(plname, "_", true);
    if(namestring == -1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Imigraзгo Believe RP: Seu nome nгo foi aceito em nosso Server.");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dica: Seu nome deve estar no formato: Nome_Sobrenome.");
        Kick(playerid);
        return 1;
    }
    tGP2[playerid] = TextDrawCreate(499.600,101.0000," ");
    TextDrawColor(tGP2[playerid], COLOR_GREEN);
    TextDrawLetterSize(tGP2[playerid], 0.575, 2.1);
    TextDrawFont(tGP2[playerid], 3);
    TextDrawBackgroundColor(tGP2[playerid], 0x00000AA);
    TextDrawSetOutline(tGP2[playerid], 2);

    tGP3[playerid] = TextDrawCreate(499.600,130.0000," ");
    TextDrawColor(tGP3[playerid], COLOR_GREEN);
    TextDrawLetterSize(tGP3[playerid], 0.575, 2.1);
    TextDrawFont(tGP3[playerid], 3);
    TextDrawBackgroundColor(tGP3[playerid], 0x00000AA);
    TextDrawSetOutline(tGP3[playerid], 2);

    GPSPos[playerid] = 0;
    PlayerIsDead[playerid] = 0;
    ApertarFnaMorte[playerid] = 0;
    Hospital[playerid] = 0;
    RouboPos[playerid] = 0;
    votou[playerid] = false;
    Conce[playerid] = 0;
    FicarRoco[playerid] = false;

//-----------------------[Conce]------------------------------------------------
    LoadPlayerVehicle(playerid);
    CarColor[playerid][0] = 1;
    CarColor[playerid][1] = 1;
    for(new v = 1; v < MAX_VEHICLES; v++) LockVehicle(v);

    new playername[MAX_PLAYER_NAME],gw;
//------------------------------------------------------------------------------

    StoreRobed[playerid] = 0;
    StoreRobedd[playerid] = 0;
    StoreRobeddd[playerid] = 0;
    Robber[playerid] = 0;
    Robberr[playerid] = 0;
    Robberrr[playerid] = 0;
    have[playerid] = 0;
    havee[playerid] = 0;
    haveee[playerid] = 0;
    Roubopref[playerid] = 0;
    Roubo[playerid] = 0;
    hava[playerid] = 0;
    EntrandoNoCarro[playerid] = 0;

    SetPlayerTeam(playerid, playerid*2);
    SetPlayerMapIcon(playerid, 1, 279.3333,-1434.8361,13.9622,17,0);          // 24-7
    SetPlayerMapIcon(playerid, 2, 1352.3300,-1755.7100,13.3530,17,0);         // 24-7
    SetPlayerMapIcon(playerid, 3, 1315.4900,-900.8430,39.5781,17,0);          // 24-7
    SetPlayerMapIcon(playerid, 9, 2501.8171,-1495.0284,24.0000,17,0);         // 24-7
    SetPlayerMapIcon(playerid, 36, 2424.3491,-1922.7054,13.5469,17,0);        // 24-7
    SetPlayerMapIcon(playerid, 4, 952.5583,-909.3518,45.7656,36,0);           // autoescola
    SetPlayerMapIcon(playerid, 5, 1750.9022,-2054.1663,14.1010,51,0);         // caminhao
    SetPlayerMapIcon(playerid, 6, 1933.4171,-1864.4463,13.5619,6,0);          // Lojas de armas
    SetPlayerMapIcon(playerid, 7, 1117.4230,-2037.0621,78.7500, 56, 0 );      // pref
    SetPlayerMapIcon(playerid, 8, 2029.9769,-1406.1050,17.2170,22,0);         // Hospital
    SetPlayerMapIcon(playerid, 10, 1561.4166,-1665.8405,28.3956,30,0);        // DP
    SetPlayerMapIcon(playerid, 11, 1450.629882,-1095.147338,17.687129,22,0);  // Farmбcia
    SetPlayerMapIcon(playerid, 12, 1831.364868,-1995.974731,13.546875,58,0);  // Nem sei
    SetPlayerMapIcon(playerid, 13, 2245.7581,-1660.3862,15.2865,45,0);        // Lojas D.s
    SetPlayerMapIcon(playerid, 14, 1462.5256,-1012.4059,26.8438,52,0);        // Banco
    SetPlayerMapIcon(playerid, 15, 375.3680,-2087.7510,7.8359,9,0);           // pesca
    SetPlayerMapIcon(playerid, 16, 1631.9384,-1170.1406,24.0781,25,0);        // Loteria
    SetPlayerMapIcon(playerid, 18 ,1257.6265,-785.2055,92.0302,43,0);         // Comorra
    SetPlayerMapIcon(playerid, 19, 554.0701,-1284.5648,17.2482,12,0);         // conce
    SetPlayerMapIcon(playerid, 21, 333.9397,-1519.0159,35.8672,30,0);         // FBI
    SetPlayerMapIcon(playerid, 23, 1653.9097,-1655.0175,22.5156,30,0);        // PR
    SetPlayerMapIcon(playerid, 25, 641.2360,-1355.3855,13.3958,35,0);         // anuncio
    SetPlayerMapIcon(playerid, 26, 2648.7905,-2018.9167,69.0208, 27, 0);      // transfender
    SetPlayerMapIcon(playerid, 27, 1040.1967,-1039.0023,69.0938, 27, 0);      // transfender
    SetPlayerMapIcon(playerid, 28, -2707.3838,220.8588,42.8703, 27, 0);       // transfender
    SetPlayerMapIcon(playerid, 30, 1836.1659,-1682.4061,13.3593,48,0);        // Alhambra
    SetPlayerMapIcon(playerid, 31, 1022.4554,-1121.7389,23.8718,48,0);        // Boate Pimp
    SetPlayerMapIcon(playerid, 32,1310.0320,-1367.6229,13.5382,23,0);         // paintball
    SetPlayerMapIcon(playerid, 33,2084.7429,-2079.8259,13.5469,24,0);         // paintball
    SetPlayerMapIcon(playerid, 34,1533.4620,-1450.8073,12.8949,42,0);         // taxi
   // SetPlayerMapIcon(playerid, 35,1371.2081,-1647.4215,9.5000,22,0);         // hostepal


    if(donomorro == 0)
    {
    GangZoneShowForPlayer(playerid, GZMorro, 0xC0C0C0AA);
    }
    if(donomorro == 1)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_GROVE_COLOR);
    }
    if(donomorro == 2)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_BALLAS_COLOR);
    }
    if(donomorro == 3)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_VAGOS_COLOR);
    }
    if(donomorro == 4)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_AZTECAS_COLOR);
    }
    if(donomorro == 5)
    {
    GangZoneShowForPlayer(playerid, GZMorro, COLOR_LIGHTBLUE);
    }
    if(donomorro == 6)
    {
    GangZoneShowForPlayer(playerid, GZMorro, COLOR_RED);
    }
    if(donomorro == 7)
    {
    GangZoneShowForPlayer(playerid, GZMorro, LARANJA1);
    }
    if(donomorro == 8)
    {
    GangZoneShowForPlayer(playerid, GZMorro, 0xC0C0C0AA);
    }
    if(donomorro == 9)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_LOW_COLOR);
    }
    if(donomorro == 10)
    {
    GangZoneShowForPlayer(playerid, GZMorro, PURPLE);
    }

    if(donoskate == 0)
    {
    GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
    }
    if(donoskate == 1)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
    }
    if(donoskate == 2)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
    }
    if(donoskate == 3)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
    }
    if(donoskate == 4)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
    }
    if(donoskate == 5)
    {
    GangZoneShowForPlayer(playerid, GZSkate, COLOR_LIGHTBLUE);
    }
    if(donoskate == 6)
    {
    GangZoneShowForPlayer(playerid, GZSkate, COLOR_RED);
    }
    if(donoskate == 7)
    {
    GangZoneShowForPlayer(playerid, GZSkate, LARANJA1);
    }
    if(donoskate == 8)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_LOW_COLOR);
    }
    if(donoskate == 9)
    {
    GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
    }
    if(donoskate == 10)
    {
    GangZoneShowForPlayer(playerid, GZSkate, PURPLE);
    }

    if(donoshop == 0)
    {
    GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
    }
    if(donoshop == 1)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_GROVE_COLOR);
    }
    if(donoshop == 2)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_BALLAS_COLOR);
    }
    if(donoshop == 3)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_VAGOS_COLOR);
    }
    if(donoshop == 4)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_AZTECAS_COLOR);
    }
    if(donoshop == 5)
    {
    GangZoneShowForPlayer(playerid, GZShop, COLOR_LIGHTBLUE);
    }
    if(donoshop == 6)
    {
    GangZoneShowForPlayer(playerid, GZShop, COLOR_RED);
    }
    if(donoshop == 7)
    {
    GangZoneShowForPlayer(playerid, GZShop, LARANJA1);
    }
    if(donoshop == 8)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_LOW_COLOR);
    }
    if(donoshop == 9)
    {
    GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
    }
    if(donoshop == 10)
    {
    GangZoneShowForPlayer(playerid, GZShop, PURPLE);
    }

    if(donoaero == 0)
    {
    GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
    }
    if(donoaero == 1)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_GROVE_COLOR);
    }
    if(donoaero == 2)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_BALLAS_COLOR);
    }
    if(donoaero == 3)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_VAGOS_COLOR);
    }
    if(donoaero == 4)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_AZTECAS_COLOR);
    }
    if(donoaero == 5)
    {
    GangZoneShowForPlayer(playerid, GZAero, COLOR_LIGHTBLUE);
    }
    if(donoaero == 6)
    {
    GangZoneShowForPlayer(playerid, GZAero, COLOR_RED);
    }
    if(donoaero == 7)
    {
    GangZoneShowForPlayer(playerid, GZAero, LARANJA1);
    }
    if(donoaero == 8)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_LOW_COLOR);
    }
    if(donoaero == 8)
    {
    GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
    }
    if(donoaero == 10)
    {
    GangZoneShowForPlayer(playerid, GZAero, PURPLE);
    }

    if(donopier == 0)
    {
    GangZoneShowForPlayer(playerid, GZPier, 0xC0C0C0AA);
    }
    if(donopier == 1)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_GROVE_COLOR);
    }
    if(donopier == 2)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_BALLAS_COLOR);
    }
    if(donopier == 3)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_VAGOS_COLOR);
    }
    if(donopier == 4)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_AZTECAS_COLOR);
    }
    if(donopier == 5)
    {
    GangZoneShowForPlayer(playerid, GZPier, COLOR_LIGHTBLUE);
    }
    if(donopier == 6)
    {
    GangZoneShowForPlayer(playerid, GZPier, COLOR_RED);
    }
    if(donopier == 7)
    {
    GangZoneShowForPlayer(playerid, GZPier, LARANJA1);
    }
    if(donopier == 8)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_LOW_COLOR);
    }
    if(donopier == 8)
    {
    GangZoneShowForPlayer(playerid, GZPier, 0xC0C0C0AA);
    }
    if(donopier == 10)
    {
    GangZoneShowForPlayer(playerid, GZPier, PURPLE);
    }

    if(donomateriala == 0)
    {
    GangZoneShowForPlayer(playerid, GZMateriala, 0x00000087);
    }
    if(donomateriala == 1)
    {
    GangZoneShowForPlayer(playerid, GZMateriala, 0x00000087);
    }

    if(donoFa1 == 0)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0xC0C0C0AA);
    }
    if(donoFa1 == 1)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0x00400096);
    }
    if(donoFa1 == 2)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0x80400096);
    }

    if(donoFa2 == 0)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0xC0C0C0AA);
    }
    if(donoFa2 == 1)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0x00400096);
    }
    if(donoFa2 == 2)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0x80400096);
    }

    gActivePlayers[playerid]++;
    numplayers++;
    ativedmenu[playerid] = 0;
    GangDead[playerid] = 0;
    TruckMission[playerid] = 0; BusMission[playerid] = 0; GasMission[playerid] = 0; PaperMission[playerid] = 0; LixoMission[playerid] = 0; PaintOffer[playerid] = 255;
    SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
    GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; AdvOffer[playerid] = 999; AdvPrice[playerid] = 0;
    ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;
    KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
    CP[playerid] = 0; Robbed[playerid] = 0; Robbedd[playerid] = 0; Robbeddd[playerid] = 0; Roubbed[playerid] = 0; SpawnChange[playerid] = 1;
    CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
    RobbedTime[playerid] = 0; RobbedTimee[playerid] = 0; RobbedTimeee[playerid] = 0; RoubbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
    STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
    RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
    TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
    RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
    DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
    Invite[playerid] = 0; InviteJob[playerid] = 0;
    DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
    DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; ConnectedToPCC[playerid] = 0;
    JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0; GotHitt[playerid] = 0;
    WantedPoints[playerid] = 0; GoChase[playerid] = 999; GoChasee[playerid] = 999; GetChased[playerid] = 999;  GetChasedd[playerid] = 999; PlacedNews[playerid] = 0;
    OnDuty[playerid] = 0; TestFishes[playerid] = 0;
    BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0; Rope[playerid] = 0; Cigarro[playerid] = 0;
    SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
    TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0; BancoCallTime[playerid] = 0; LotericaCallTime[playerid] = 0;  PostoNorteCallTime[playerid] = 0;  PostoSulCallTime[playerid] = 0; SalaCallTime[playerid] = 0; RouboCallTime[playerid] = 0; PrefCallTime[playerid] = 0; DepositoCallTime[playerid] = 0;
    FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;
    Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
    Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
    Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0;
    WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
    PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;
    gLastCar[playerid] = 0;
    gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; BigSms[playerid] = 0; BigMp[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
    gSpeedo[playerid] = 0; gGas[playerid] = 0;
    gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;
    gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
    PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
    StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
    MatsHolding[playerid] = 0; TutTime[playerid] = 0;
    TaxiAccepted[playerid] = 999;
    PlayerInfo[playerid][pDolar] = dollah; NoFuel[playerid] = 0;
    HireCar[playerid] = 299; PlayersChannel[playerid] = 999;
    FecharPortao1[playerid] = 255; FecharPortao4[playerid] = 255;
    FecharPortao5[playerid] = 255; FecharPortao6[playerid] = 255;
    FecharPortao9[playerid] = 255; FecharPortao10[playerid] = 255; FecharPortao11[playerid] = 255; FecharPortao12[playerid] = 255; FecharPortao13[playerid] = 255; FecharPortao14[playerid] = 255;
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
    Locator[playerid] = 0; PizzaCallTime[playerid] = 0; sPizza[playerid] = 0; bPizza[playerid] = 0;
    WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; AnuncioTime[playerid] = 0; ReduceTime[playerid] = 0; BombTime[playerid] = 0; BombaTime[playerid] = 0;
    Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; CuraAcc[playerid] = 999;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
    PlayerInfo[playerid][pLevel] = 0;
    InAFoodPlace[playerid] = 0;
    PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pDonateRank] = 0;
    PlayerInfo[playerid][gPupgrade] = 0;
    PlayerInfo[playerid][pConnectTime] = 0;
    PlayerInfo[playerid][pReg] = 0;
    PlayerInfo[playerid][pSex] = 0;
    PlayerInfo[playerid][pAge] = 0;
    PlayerInfo[playerid][pOrigin] = 0;
    PlayerInfo[playerid][pExp] = 0;
    PlayerInfo[playerid][pAccount] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pArrested] = 0;
    PlayerInfo[playerid][pWantedDeaths] = 0;
    PlayerInfo[playerid][pPhoneBook] = 0;
    PlayerInfo[playerid][pPhone] = 0;
    PlayerInfo[playerid][pLottoNr] = 0;
    PlayerInfo[playerid][pFishes] = 0;
    PlayerInfo[playerid][pBiggestFish] = 0;
    PlayerInfo[playerid][pJob] = 0;
    PlayerInfo[playerid][pPayCheck] = 0;
    PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[playerid][pCabecaValue] = 0;
    PlayerInfo[playerid][pJailed] = 0;
    PlayerInfo[playerid][pJailTime] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDrugs] = 0;
    PlayerInfo[playerid][pLeader] = 0;
    PlayerInfo[playerid][pMember] = 0;
    PlayerInfo[playerid][pFMember] = 255;
    PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pChar] = 23;
    PlayerInfo[playerid][pContractTime] = 0;
    PlayerInfo[playerid][pDetSkill] = 0;
    PlayerInfo[playerid][pSexSkill] = 0;
    PlayerInfo[playerid][pBoxSkill] = 0;
    PlayerInfo[playerid][pLawSkill] = 0;
    PlayerInfo[playerid][pMechSkill] = 0;
    PlayerInfo[playerid][pJackSkill] = 0;
    PlayerInfo[playerid][pCarSkill] = 0;
    PlayerInfo[playerid][pNewsSkill] = 0;
    PlayerInfo[playerid][pDrugsSkill] = 0;
    PlayerInfo[playerid][pCookSkill] = 0;
    PlayerInfo[playerid][pFishSkill] = 0;
    PlayerInfo[playerid][pSHealth] = 0.0;
    PlayerInfo[playerid][pHealth] = 50.0;
    PlayerInfo[playerid][pPos_x] = 1130.1013;
    PlayerInfo[playerid][pPos_y] = -2037.5076;
    PlayerInfo[playerid][pPos_z] = 69.0078;
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pModel] = 60;
    new randphone = 1000 + random(8999);
    PlayerInfo[playerid][pPnumber] = randphone;
    PlayerInfo[playerid][pPhousekey] = 255;
    PlayerInfo[playerid][pPayCheck] = 0;
    PlayerInfo[playerid][pPbiskey] = 255;
    PlayerInfo[playerid][pCarLic] = 0;
    PlayerInfo[playerid][pFlyLic] = 0;
    PlayerInfo[playerid][pBoatLic] = 0;
    PlayerInfo[playerid][pFishLic] = 0;
    PlayerInfo[playerid][pGunLic] = 0;
    PlayerInfo[playerid][pGun1] = 0;
    PlayerInfo[playerid][pGun2] = 0;
    PlayerInfo[playerid][pGun3] = 0;
    PlayerInfo[playerid][pGun4] = 0;
    PlayerInfo[playerid][pAmmo1] = 0;
    PlayerInfo[playerid][pAmmo2] = 0;
    PlayerInfo[playerid][pAmmo3] = 0;
    PlayerInfo[playerid][pAmmo4] = 0;
    PlayerInfo[playerid][pCarTime] = 0;
    PlayerInfo[playerid][pPayDay] = 0;
    PlayerInfo[playerid][pPayDayHad] = 0;
    PlayerInfo[playerid][pCDPlayer] = 0;
    PlayerInfo[playerid][pWins] = 0;
    PlayerInfo[playerid][pLoses] = 0;
    PlayerInfo[playerid][pAlcoholPerk] = 0;
    PlayerInfo[playerid][pDrugPerk] = 0;
    PlayerInfo[playerid][pMiserPerk] = 0;
    PlayerInfo[playerid][pPainPerk] = 0;
    PlayerInfo[playerid][pTraderPerk] = 0;
    PlayerInfo[playerid][pTut] = 0;
    PlayerInfo[playerid][pWarns] = 0;
    PlayerInfo[playerid][pVirWorld] = 0;
    PlayerInfo[playerid][pFuel] = 0;
    PlayerInfo[playerid][pMask] = 0;
    PlayerInfo[playerid][pInvWeapon] = 0;
    PlayerInfo[playerid][pInvAmmo] = 0;
    PlayerInfo[playerid][pSpeaker] = 0;
    PlayerInfo[playerid][pMaskuse] = 0;
    PlayerInfo[playerid][pRequestingBackup] = 0;
    PlayerInfo[playerid][pRoadblock] = 0;
    PlayerInfo[playerid][pDolar] = 0;
    PlayerInfo[playerid][pAdjustable] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pControleR] = 0;
    strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
    ClearCrime(playerid);
    ClearFishes(playerid);
    ClearCooking(playerid);
    ClearGroceries(playerid);
    ClearMarriage(playerid);
    new string[128];
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string), "Contas/%s.ini", plname);
    SendClientMessage(playerid, COLOR_YELLOW2, "Por favor aguarde...");
    PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
    SetPlayerCameraPos(playerid, 1778.8789,-1515.0527,60.0067);
    SetPlayerCameraLookAt(playerid, 1660.7501,-1411.7880,120.7915);

    SeeHUD[playerid] = false;

    if(fexist(string))
    {
        gPlayerAccount[playerid] = 1;
        new loginstring[128];
        new loginname[64];
        GetPlayerName(playerid,loginname,sizeof(loginname));
        format(loginstring,sizeof(loginstring),"Bem-Vindo ao Believe RP\nNome: %s\n\nPor favor insira sua senha:",loginname);
        ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Believe RP - Login",loginstring,"Logar","Sair");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        return 1;
    }
    else
    {
        gPlayerAccount[playerid] = 0;
        new regstring[128];
        new regname[64];
        GetPlayerName(playerid,regname,sizeof(regname));
        format(regstring,sizeof(regstring),"Bem-Vindo ao Believe RP\nConta nгo Registrada\nNome: %s\n\nPor favor insira sua senha:",regname);
        ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Believe RP - REGISTRO",regstring,"Registrar","Sair");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
    }
    GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
    if(strcmp(playername,"Batman",true) == 0 || strcmp(playername,"Rocky",true) == 0 || strcmp(playername,"Carl",true) == 0 || strcmp(playername,"aux",true) == 0 || strcmp(playername,"con",true) == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "Me xupa FIDAPUTA, Sua mгe й minha desgraзado.");
        Ban(playerid);
        return 1;
    }
    if(strfind(playername,"_",true,1)!=-1)
    gw=1;
    if(playername[strlen(playername)-1]=='_')
    gw=0;
    for(new i=0;i<strlen(playername);i++)
    if((playername[i]<='9')&&(playername[i]>='0'))
    gw=0;
    if(!gw)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "Imigraзгo Believe RP: Seu nome nгo foi aceito em nossa agкncia.");
        SendClientMessage(playerid, COLOR_YELLOW2, "Dica: Seu nome deve estar no formato: Nome_Sobrenome.");
        Kick(playerid);
    }
    return 1;
}
public JoinChannel(playerid, number, line[])
{
    if(IsPlayerConnected(playerid))
    {
        if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
        {
            JoinChannelNr(playerid, number);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   A senha do canal estб INCORRETA !");
        }
    }
    return 1;
}

public JoinChannelNr(playerid, number)
{
    if(IsPlayerConnected(playerid))
    {
        new string[256];
        new sendername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(PlayersChannel[playerid] < 999)
        {
            format(string, sizeof(string), "%s saiu do canal.", sendername);
            SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
            IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
        }
        new channel; channel = number; channel += 1;
        PlayersChannel[playerid] = number;
        IRCInfo[PlayersChannel[playerid]][iPlayers] += 1;
        new wstring[128];
        format(string, sizeof(string), "%s", sendername);
        strmid(wstring, string, 0, strlen(string), 255);
        if(strcmp(IRCInfo[number][iAdmin],wstring, true ) == 0 )
        {
            format(string, sizeof(string), "Vocк entrou no Canal IRC %d como Administrador.", channel);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
        else
        {
            format(string, sizeof(string), "Vocк entrou no Canal IRC %d, Admins: %s.", channel, IRCInfo[number][iAdmin]);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
        format(string, sizeof(string), "MOTD: %s.", IRCInfo[number][iMOTD]);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        format(string, sizeof(string), "(%s entrou no canal)", sendername);
        SendIRCMessage(number, COLOR_GREEN, string);
    }
    return 1;
}

public ClearMarriage(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhuma");
        strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
        PlayerInfo[playerid][pMarried] = 0;
    }
    return 1;
}

public ClearPaper(paper)
{
    new string[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Nenhum");
    PaperInfo[paper][PaperUsed] = 0;
    strmid(PaperInfo[paper][PaperMaker], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperTitle], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText1], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText2], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText3], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText4], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText5], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText6], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText7], string, 0, strlen(string), 255);
    SavePapers();
    return 1;
}

public ClearFamily(family)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pFMember] == family)
            {
                SendClientMessage(i, COLOR_LIGHTBLUE, "A famнlia em que vocк estava foi deletada pelo lнder da organizaзгo (saiu da famнlia)");
                PlayerInfo[i][pFMember] = 255;
            }
        }
    }
    new string[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Nenhum");
    FamilyInfo[family][FamilyTaken] = 0;
    strmid(FamilyInfo[family][FamilyName], string, 0, strlen(string), 255);
    strmid(FamilyInfo[family][FamilyMOTD], string, 0, strlen(string), 255);
    strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
    format(string, sizeof(string), "0xFF000069");
    strmid(FamilyInfo[family][FamilyColor], string, 0, strlen(string), 255);
    FamilyInfo[family][FamilyMembers] = 0;
    FamilyInfo[family][FamilySpawn][0] = 0.0;
    FamilyInfo[family][FamilySpawn][1] = 0.0;
    FamilyInfo[family][FamilySpawn][2] = 0.0;
    FamilyInfo[family][FamilySpawn][3] = 0.0;
    FamilyInfo[family][FamilyInterior] = 0;
    SaveFamilies();
    return 1;
}

public ClearCrime(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "********");
        strmid(PlayerCrime[playerid][pBplayer], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pVictim], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pAccusing], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pAccusedof], string, 0, strlen(string), 255);
    }
    return 1;
}

public FishCost(playerid, fish)
{
    if(IsPlayerConnected(playerid))
    {
        new cost = 0;
        switch (fish)
        {
            case 1:
            {
                cost = 1;
            }
            case 2:
            {
                cost = 3;
            }
            case 3:
            {
                cost = 3;
            }
            case 5:
            {
                cost = 5;
            }
            case 6:
            {
                cost = 2;
            }
            case 8:
            {
                cost = 8;
            }
            case 9:
            {
                cost = 12;
            }
            case 11:
            {
                cost = 9;
            }
            case 12:
            {
                cost = 7;
            }
            case 14:
            {
                cost = 12;
            }
            case 15:
            {
                cost = 9;
            }
            case 16:
            {
                cost = 7;
            }
            case 17:
            {
                cost = 7;
            }
            case 18:
            {
                cost = 10;
            }
            case 19:
            {
                cost = 4;
            }
            case 21:
            {
                cost = 3;
            }
        }
        return cost;
    }
    return 0;
}

public ClearFishes(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
        Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
        Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
        Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
    }
    return 1;
}

public ClearFishID(playerid, fish)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        switch (fish)
        {
            case 1:
            {
                strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight1] = 0;
                Fishes[playerid][pFid1] = 0;
            }
            case 2:
            {
                strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight2] = 0;
                Fishes[playerid][pFid2] = 0;
            }
            case 3:
            {
                strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight3] = 0;
                Fishes[playerid][pFid3] = 0;
            }
            case 4:
            {
                strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight4] = 0;
                Fishes[playerid][pFid4] = 0;
            }
            case 5:
            {
                strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight5] = 0;
                Fishes[playerid][pFid5] = 0;
            }
        }
    }
    return 1;
}

public ClearCooking(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Cooking[playerid][pCookID1] = 0; Cooking[playerid][pCookID2] = 0; Cooking[playerid][pCookID3] = 0;
        Cooking[playerid][pCookID4] = 0; Cooking[playerid][pCookID5] = 0;
        Cooking[playerid][pCWeight1] = 0; Cooking[playerid][pCWeight2] = 0; Cooking[playerid][pCWeight3] = 0;
        Cooking[playerid][pCWeight4] = 0; Cooking[playerid][pCWeight5] = 0;
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
    }
    return 1;
}

public ClearCookingID(playerid, cook)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        switch (cook)
        {
            case 1:
            {
                strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight1] = 0;
                Cooking[playerid][pCookID1] = 0;
            }
            case 2:
            {
                strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight2] = 0;
                Cooking[playerid][pCookID2] = 0;
            }
            case 3:
            {
                strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight3] = 0;
                Cooking[playerid][pCookID3] = 0;
            }
            case 4:
            {
                strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight4] = 0;
                Cooking[playerid][pCookID4] = 0;
            }
            case 5:
            {
                strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight5] = 0;
                Cooking[playerid][pCookID5] = 0;
            }
        }
    }
    return 1;
}

public ClearGroceries(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Groceries[playerid][pChickens] = 0; Groceries[playerid][pChicken] = 0;
        Groceries[playerid][pHamburgers] = 0; Groceries[playerid][pHamburger] = 0;
        Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
    }
    return 1;
}

public Lotto(number)
{
    new JackpotFallen = 0;
    new string[256];
    new winner[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Loteria News: O nъmero ganhador foi %d", number);
    OOCOff(ORANGE, string);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pLottoNr] > 0)
            {
                if(PlayerInfo[i][pLottoNr] == number)
                {
                    JackpotFallen = 1;
                    GetPlayerName(i, winner, sizeof(winner));
                    format(string, sizeof(string), "Loteria News: %s ganhou o packpage com R$ %d ! ! !", winner, Jackpot);
                    OOCOff(ORANGE, string);
                    format(string, sizeof(string), "Vocк ganhou R$ %d com seu ticket de loteria.", Jackpot);
                    SendClientMessage(i, COLOR_LIGHTBLUE, string);
                    ConsumingMoney[i] = 1;
                    GivePlayerGP(i, Jackpot);
                }
                else
                {
                    SendClientMessage(i, COLOR_LIGHTBLUE, "Vocк nгo ganhou a loteria com este Ticket, tente na prуxima.");
                }
            }
            PlayerInfo[i][pLottoNr] = 0;
        }
    }
    if(JackpotFallen)
    {
        new rand = random(5000); rand += 789;
        Jackpot = rand;
        SaveStuff();
        format(string, sizeof(string), "Loteria News: O packpage se inicializou com R$ %d", Jackpot);
        OOCOff(COLOR_WHITE, string);
    }
    else
    {
        new rand = random(600); rand += 158;
        Jackpot += rand;
        SaveStuff();
        format(string, sizeof(string), "Loteria News: O packpage teve foi altuado para R$ %d", Jackpot);
        OOCOff(COLOR_WHITE, string);
    }
    return 1;
}
forward Pararmusica(playerid);
public Pararmusica(playerid)
{
    StopAudioStreamForPlayer(playerid); Ira fazer a musica parar de tocar.
    return 1;
}
Reply
#5

deu 1 erro sу:

Код:
(13874) : error 001: expected token: ";", but found "-identifier-"
Код:
SetTimer("Pararmusica",60000,false);
Reply
#6

PHP код:
SetTimer("Pararmusica"6000false); 
Reply
#7

apenas copie isto e cole no lugar da sua public
pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid,"http://dc128.4shared.com/img/63947112/1ff26484/dlink__2Fdownload_2FSxYuNriz_3Ftsid_3D20111219-174202-d1dea18a/preview.mp3") // Neste Exemplo quando o Player entra no servidor ira tocar a musica da Url.
    SetTimer("Pararmusica",60000,false); // A musica ficara tocando 1 minuto.
    RemoveBuildingForPlayer(playerid, 762, 1005.2109, -2273.3594, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 980.8047, -2186.8984, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1000.1328, -2132.2656, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1015.9531, -2078.9766, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1023.5938, -2050.6875, 16.0859, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 1011.8594, -2043.5000, 16.0859, 0.25);
    if(IsPlayerNPC(playerid)){SpawnPlayer(playerid);return 1;}
    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, sizeof(plname));
    if(Security != 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Caso desrespeite alguma regra, vocк serб punido de acordo com seu erro.");
        Kick(playerid);
        return 1;
    }
    new namestring = strfind(plname, "_", true);
    if(namestring == -1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Imigraзгo Believe RP: Seu nome nгo foi aceito em nosso Server.");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Dica: Seu nome deve estar no formato: Nome_Sobrenome.");
        Kick(playerid);
        return 1;
    }
    tGP2[playerid] = TextDrawCreate(499.600,101.0000," ");
    TextDrawColor(tGP2[playerid], COLOR_GREEN);
    TextDrawLetterSize(tGP2[playerid], 0.575, 2.1);
    TextDrawFont(tGP2[playerid], 3);
    TextDrawBackgroundColor(tGP2[playerid], 0x00000AA);
    TextDrawSetOutline(tGP2[playerid], 2);

    tGP3[playerid] = TextDrawCreate(499.600,130.0000," ");
    TextDrawColor(tGP3[playerid], COLOR_GREEN);
    TextDrawLetterSize(tGP3[playerid], 0.575, 2.1);
    TextDrawFont(tGP3[playerid], 3);
    TextDrawBackgroundColor(tGP3[playerid], 0x00000AA);
    TextDrawSetOutline(tGP3[playerid], 2);

    GPSPos[playerid] = 0;
    PlayerIsDead[playerid] = 0;
    ApertarFnaMorte[playerid] = 0;
    Hospital[playerid] = 0;
    RouboPos[playerid] = 0;
    votou[playerid] = false;
    Conce[playerid] = 0;
    FicarRoco[playerid] = false;

//-----------------------[Conce]------------------------------------------------
    LoadPlayerVehicle(playerid);
    CarColor[playerid][0] = 1;
    CarColor[playerid][1] = 1;
    for(new v = 1; v < MAX_VEHICLES; v++) LockVehicle(v);

    new playername[MAX_PLAYER_NAME],gw;
//------------------------------------------------------------------------------

    StoreRobed[playerid] = 0;
    StoreRobedd[playerid] = 0;
    StoreRobeddd[playerid] = 0;
    Robber[playerid] = 0;
    Robberr[playerid] = 0;
    Robberrr[playerid] = 0;
    have[playerid] = 0;
    havee[playerid] = 0;
    haveee[playerid] = 0;
    Roubopref[playerid] = 0;
    Roubo[playerid] = 0;
    hava[playerid] = 0;
    EntrandoNoCarro[playerid] = 0;

    SetPlayerTeam(playerid, playerid*2);
    SetPlayerMapIcon(playerid, 1, 279.3333,-1434.8361,13.9622,17,0);          // 24-7
    SetPlayerMapIcon(playerid, 2, 1352.3300,-1755.7100,13.3530,17,0);         // 24-7
    SetPlayerMapIcon(playerid, 3, 1315.4900,-900.8430,39.5781,17,0);          // 24-7
    SetPlayerMapIcon(playerid, 9, 2501.8171,-1495.0284,24.0000,17,0);         // 24-7
    SetPlayerMapIcon(playerid, 36, 2424.3491,-1922.7054,13.5469,17,0);        // 24-7
    SetPlayerMapIcon(playerid, 4, 952.5583,-909.3518,45.7656,36,0);           // autoescola
    SetPlayerMapIcon(playerid, 5, 1750.9022,-2054.1663,14.1010,51,0);         // caminhao
    SetPlayerMapIcon(playerid, 6, 1933.4171,-1864.4463,13.5619,6,0);          // Lojas de armas
    SetPlayerMapIcon(playerid, 7, 1117.4230,-2037.0621,78.7500, 56, 0 );      // pref
    SetPlayerMapIcon(playerid, 8, 2029.9769,-1406.1050,17.2170,22,0);         // Hospital
    SetPlayerMapIcon(playerid, 10, 1561.4166,-1665.8405,28.3956,30,0);        // DP
    SetPlayerMapIcon(playerid, 11, 1450.629882,-1095.147338,17.687129,22,0);  // Farmбcia
    SetPlayerMapIcon(playerid, 12, 1831.364868,-1995.974731,13.546875,58,0);  // Nem sei
    SetPlayerMapIcon(playerid, 13, 2245.7581,-1660.3862,15.2865,45,0);        // Lojas D.s
    SetPlayerMapIcon(playerid, 14, 1462.5256,-1012.4059,26.8438,52,0);        // Banco
    SetPlayerMapIcon(playerid, 15, 375.3680,-2087.7510,7.8359,9,0);           // pesca
    SetPlayerMapIcon(playerid, 16, 1631.9384,-1170.1406,24.0781,25,0);        // Loteria
    SetPlayerMapIcon(playerid, 18 ,1257.6265,-785.2055,92.0302,43,0);         // Comorra
    SetPlayerMapIcon(playerid, 19, 554.0701,-1284.5648,17.2482,12,0);         // conce
    SetPlayerMapIcon(playerid, 21, 333.9397,-1519.0159,35.8672,30,0);         // FBI
    SetPlayerMapIcon(playerid, 23, 1653.9097,-1655.0175,22.5156,30,0);        // PR
    SetPlayerMapIcon(playerid, 25, 641.2360,-1355.3855,13.3958,35,0);         // anuncio
    SetPlayerMapIcon(playerid, 26, 2648.7905,-2018.9167,69.0208, 27, 0);      // transfender
    SetPlayerMapIcon(playerid, 27, 1040.1967,-1039.0023,69.0938, 27, 0);      // transfender
    SetPlayerMapIcon(playerid, 28, -2707.3838,220.8588,42.8703, 27, 0);       // transfender
    SetPlayerMapIcon(playerid, 30, 1836.1659,-1682.4061,13.3593,48,0);        // Alhambra
    SetPlayerMapIcon(playerid, 31, 1022.4554,-1121.7389,23.8718,48,0);        // Boate Pimp
    SetPlayerMapIcon(playerid, 32,1310.0320,-1367.6229,13.5382,23,0);         // paintball
    SetPlayerMapIcon(playerid, 33,2084.7429,-2079.8259,13.5469,24,0);         // paintball
    SetPlayerMapIcon(playerid, 34,1533.4620,-1450.8073,12.8949,42,0);         // taxi
   // SetPlayerMapIcon(playerid, 35,1371.2081,-1647.4215,9.5000,22,0);         // hostepal


    if(donomorro == 0)
    {
    GangZoneShowForPlayer(playerid, GZMorro, 0xC0C0C0AA);
    }
    if(donomorro == 1)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_GROVE_COLOR);
    }
    if(donomorro == 2)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_BALLAS_COLOR);
    }
    if(donomorro == 3)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_VAGOS_COLOR);
    }
    if(donomorro == 4)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_AZTECAS_COLOR);
    }
    if(donomorro == 5)
    {
    GangZoneShowForPlayer(playerid, GZMorro, COLOR_LIGHTBLUE);
    }
    if(donomorro == 6)
    {
    GangZoneShowForPlayer(playerid, GZMorro, COLOR_RED);
    }
    if(donomorro == 7)
    {
    GangZoneShowForPlayer(playerid, GZMorro, LARANJA1);
    }
    if(donomorro == 8)
    {
    GangZoneShowForPlayer(playerid, GZMorro, 0xC0C0C0AA);
    }
    if(donomorro == 9)
    {
    GangZoneShowForPlayer(playerid, GZMorro, TEAM_LOW_COLOR);
    }
    if(donomorro == 10)
    {
    GangZoneShowForPlayer(playerid, GZMorro, PURPLE);
    }

    if(donoskate == 0)
    {
    GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
    }
    if(donoskate == 1)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
    }
    if(donoskate == 2)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
    }
    if(donoskate == 3)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
    }
    if(donoskate == 4)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
    }
    if(donoskate == 5)
    {
    GangZoneShowForPlayer(playerid, GZSkate, COLOR_LIGHTBLUE);
    }
    if(donoskate == 6)
    {
    GangZoneShowForPlayer(playerid, GZSkate, COLOR_RED);
    }
    if(donoskate == 7)
    {
    GangZoneShowForPlayer(playerid, GZSkate, LARANJA1);
    }
    if(donoskate == 8)
    {
    GangZoneShowForPlayer(playerid, GZSkate, TEAM_LOW_COLOR);
    }
    if(donoskate == 9)
    {
    GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
    }
    if(donoskate == 10)
    {
    GangZoneShowForPlayer(playerid, GZSkate, PURPLE);
    }

    if(donoshop == 0)
    {
    GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
    }
    if(donoshop == 1)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_GROVE_COLOR);
    }
    if(donoshop == 2)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_BALLAS_COLOR);
    }
    if(donoshop == 3)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_VAGOS_COLOR);
    }
    if(donoshop == 4)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_AZTECAS_COLOR);
    }
    if(donoshop == 5)
    {
    GangZoneShowForPlayer(playerid, GZShop, COLOR_LIGHTBLUE);
    }
    if(donoshop == 6)
    {
    GangZoneShowForPlayer(playerid, GZShop, COLOR_RED);
    }
    if(donoshop == 7)
    {
    GangZoneShowForPlayer(playerid, GZShop, LARANJA1);
    }
    if(donoshop == 8)
    {
    GangZoneShowForPlayer(playerid, GZShop, TEAM_LOW_COLOR);
    }
    if(donoshop == 9)
    {
    GangZoneShowForPlayer(playerid, GZShop, 0xC0C0C0AA);
    }
    if(donoshop == 10)
    {
    GangZoneShowForPlayer(playerid, GZShop, PURPLE);
    }

    if(donoaero == 0)
    {
    GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
    }
    if(donoaero == 1)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_GROVE_COLOR);
    }
    if(donoaero == 2)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_BALLAS_COLOR);
    }
    if(donoaero == 3)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_VAGOS_COLOR);
    }
    if(donoaero == 4)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_AZTECAS_COLOR);
    }
    if(donoaero == 5)
    {
    GangZoneShowForPlayer(playerid, GZAero, COLOR_LIGHTBLUE);
    }
    if(donoaero == 6)
    {
    GangZoneShowForPlayer(playerid, GZAero, COLOR_RED);
    }
    if(donoaero == 7)
    {
    GangZoneShowForPlayer(playerid, GZAero, LARANJA1);
    }
    if(donoaero == 8)
    {
    GangZoneShowForPlayer(playerid, GZAero, TEAM_LOW_COLOR);
    }
    if(donoaero == 8)
    {
    GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
    }
    if(donoaero == 10)
    {
    GangZoneShowForPlayer(playerid, GZAero, PURPLE);
    }

    if(donopier == 0)
    {
    GangZoneShowForPlayer(playerid, GZPier, 0xC0C0C0AA);
    }
    if(donopier == 1)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_GROVE_COLOR);
    }
    if(donopier == 2)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_BALLAS_COLOR);
    }
    if(donopier == 3)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_VAGOS_COLOR);
    }
    if(donopier == 4)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_AZTECAS_COLOR);
    }
    if(donopier == 5)
    {
    GangZoneShowForPlayer(playerid, GZPier, COLOR_LIGHTBLUE);
    }
    if(donopier == 6)
    {
    GangZoneShowForPlayer(playerid, GZPier, COLOR_RED);
    }
    if(donopier == 7)
    {
    GangZoneShowForPlayer(playerid, GZPier, LARANJA1);
    }
    if(donopier == 8)
    {
    GangZoneShowForPlayer(playerid, GZPier, TEAM_LOW_COLOR);
    }
    if(donopier == 8)
    {
    GangZoneShowForPlayer(playerid, GZPier, 0xC0C0C0AA);
    }
    if(donopier == 10)
    {
    GangZoneShowForPlayer(playerid, GZPier, PURPLE);
    }

    if(donomateriala == 0)
    {
    GangZoneShowForPlayer(playerid, GZMateriala, 0x00000087);
    }
    if(donomateriala == 1)
    {
    GangZoneShowForPlayer(playerid, GZMateriala, 0x00000087);
    }

    if(donoFa1 == 0)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0xC0C0C0AA);
    }
    if(donoFa1 == 1)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0x00400096);
    }
    if(donoFa1 == 2)
    {
    GangZoneShowForPlayer(playerid, GZFa1, 0x80400096);
    }

    if(donoFa2 == 0)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0xC0C0C0AA);
    }
    if(donoFa2 == 1)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0x00400096);
    }
    if(donoFa2 == 2)
    {
    GangZoneShowForPlayer(playerid, GZFa2, 0x80400096);
    }

    gActivePlayers[playerid]++;
    numplayers++;
    ativedmenu[playerid] = 0;
    GangDead[playerid] = 0;
    TruckMission[playerid] = 0; BusMission[playerid] = 0; GasMission[playerid] = 0; PaperMission[playerid] = 0; LixoMission[playerid] = 0; PaintOffer[playerid] = 255;
    SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
    GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; AdvOffer[playerid] = 999; AdvPrice[playerid] = 0;
    ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;
    KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
    CP[playerid] = 0; Robbed[playerid] = 0; Robbedd[playerid] = 0; Robbeddd[playerid] = 0; Roubbed[playerid] = 0; SpawnChange[playerid] = 1;
    CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
    RobbedTime[playerid] = 0; RobbedTimee[playerid] = 0; RobbedTimeee[playerid] = 0; RoubbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
    STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
    RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
    TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
    RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
    DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
    Invite[playerid] = 0; InviteJob[playerid] = 0;
    DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
    DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; ConnectedToPCC[playerid] = 0;
    JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0; GotHitt[playerid] = 0;
    WantedPoints[playerid] = 0; GoChase[playerid] = 999; GoChasee[playerid] = 999; GetChased[playerid] = 999;  GetChasedd[playerid] = 999; PlacedNews[playerid] = 0;
    OnDuty[playerid] = 0; TestFishes[playerid] = 0;
    BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0; Rope[playerid] = 0; Cigarro[playerid] = 0;
    SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
    TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0; BancoCallTime[playerid] = 0; LotericaCallTime[playerid] = 0;  PostoNorteCallTime[playerid] = 0;  PostoSulCallTime[playerid] = 0; SalaCallTime[playerid] = 0; RouboCallTime[playerid] = 0; PrefCallTime[playerid] = 0; DepositoCallTime[playerid] = 0;
    FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;
    Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
    Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
    Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0;
    WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
    PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;
    gLastCar[playerid] = 0;
    gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; BigSms[playerid] = 0; BigMp[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
    gSpeedo[playerid] = 0; gGas[playerid] = 0;
    gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;
    gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
    PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
    StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
    MatsHolding[playerid] = 0; TutTime[playerid] = 0;
    TaxiAccepted[playerid] = 999;
    PlayerInfo[playerid][pDolar] = dollah; NoFuel[playerid] = 0;
    HireCar[playerid] = 299; PlayersChannel[playerid] = 999;
    FecharPortao1[playerid] = 255; FecharPortao4[playerid] = 255;
    FecharPortao5[playerid] = 255; FecharPortao6[playerid] = 255;
    FecharPortao9[playerid] = 255; FecharPortao10[playerid] = 255; FecharPortao11[playerid] = 255; FecharPortao12[playerid] = 255; FecharPortao13[playerid] = 255; FecharPortao14[playerid] = 255;
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
    Locator[playerid] = 0; PizzaCallTime[playerid] = 0; sPizza[playerid] = 0; bPizza[playerid] = 0;
    WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; AnuncioTime[playerid] = 0; ReduceTime[playerid] = 0; BombTime[playerid] = 0; BombaTime[playerid] = 0;
    Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; CuraAcc[playerid] = 999;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
    PlayerInfo[playerid][pLevel] = 0;
    InAFoodPlace[playerid] = 0;
    PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pDonateRank] = 0;
    PlayerInfo[playerid][gPupgrade] = 0;
    PlayerInfo[playerid][pConnectTime] = 0;
    PlayerInfo[playerid][pReg] = 0;
    PlayerInfo[playerid][pSex] = 0;
    PlayerInfo[playerid][pAge] = 0;
    PlayerInfo[playerid][pOrigin] = 0;
    PlayerInfo[playerid][pExp] = 0;
    PlayerInfo[playerid][pAccount] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pArrested] = 0;
    PlayerInfo[playerid][pWantedDeaths] = 0;
    PlayerInfo[playerid][pPhoneBook] = 0;
    PlayerInfo[playerid][pPhone] = 0;
    PlayerInfo[playerid][pLottoNr] = 0;
    PlayerInfo[playerid][pFishes] = 0;
    PlayerInfo[playerid][pBiggestFish] = 0;
    PlayerInfo[playerid][pJob] = 0;
    PlayerInfo[playerid][pPayCheck] = 0;
    PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[playerid][pCabecaValue] = 0;
    PlayerInfo[playerid][pJailed] = 0;
    PlayerInfo[playerid][pJailTime] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDrugs] = 0;
    PlayerInfo[playerid][pLeader] = 0;
    PlayerInfo[playerid][pMember] = 0;
    PlayerInfo[playerid][pFMember] = 255;
    PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pChar] = 23;
    PlayerInfo[playerid][pContractTime] = 0;
    PlayerInfo[playerid][pDetSkill] = 0;
    PlayerInfo[playerid][pSexSkill] = 0;
    PlayerInfo[playerid][pBoxSkill] = 0;
    PlayerInfo[playerid][pLawSkill] = 0;
    PlayerInfo[playerid][pMechSkill] = 0;
    PlayerInfo[playerid][pJackSkill] = 0;
    PlayerInfo[playerid][pCarSkill] = 0;
    PlayerInfo[playerid][pNewsSkill] = 0;
    PlayerInfo[playerid][pDrugsSkill] = 0;
    PlayerInfo[playerid][pCookSkill] = 0;
    PlayerInfo[playerid][pFishSkill] = 0;
    PlayerInfo[playerid][pSHealth] = 0.0;
    PlayerInfo[playerid][pHealth] = 50.0;
    PlayerInfo[playerid][pPos_x] = 1130.1013;
    PlayerInfo[playerid][pPos_y] = -2037.5076;
    PlayerInfo[playerid][pPos_z] = 69.0078;
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pModel] = 60;
    new randphone = 1000 + random(8999);
    PlayerInfo[playerid][pPnumber] = randphone;
    PlayerInfo[playerid][pPhousekey] = 255;
    PlayerInfo[playerid][pPayCheck] = 0;
    PlayerInfo[playerid][pPbiskey] = 255;
    PlayerInfo[playerid][pCarLic] = 0;
    PlayerInfo[playerid][pFlyLic] = 0;
    PlayerInfo[playerid][pBoatLic] = 0;
    PlayerInfo[playerid][pFishLic] = 0;
    PlayerInfo[playerid][pGunLic] = 0;
    PlayerInfo[playerid][pGun1] = 0;
    PlayerInfo[playerid][pGun2] = 0;
    PlayerInfo[playerid][pGun3] = 0;
    PlayerInfo[playerid][pGun4] = 0;
    PlayerInfo[playerid][pAmmo1] = 0;
    PlayerInfo[playerid][pAmmo2] = 0;
    PlayerInfo[playerid][pAmmo3] = 0;
    PlayerInfo[playerid][pAmmo4] = 0;
    PlayerInfo[playerid][pCarTime] = 0;
    PlayerInfo[playerid][pPayDay] = 0;
    PlayerInfo[playerid][pPayDayHad] = 0;
    PlayerInfo[playerid][pCDPlayer] = 0;
    PlayerInfo[playerid][pWins] = 0;
    PlayerInfo[playerid][pLoses] = 0;
    PlayerInfo[playerid][pAlcoholPerk] = 0;
    PlayerInfo[playerid][pDrugPerk] = 0;
    PlayerInfo[playerid][pMiserPerk] = 0;
    PlayerInfo[playerid][pPainPerk] = 0;
    PlayerInfo[playerid][pTraderPerk] = 0;
    PlayerInfo[playerid][pTut] = 0;
    PlayerInfo[playerid][pWarns] = 0;
    PlayerInfo[playerid][pVirWorld] = 0;
    PlayerInfo[playerid][pFuel] = 0;
    PlayerInfo[playerid][pMask] = 0;
    PlayerInfo[playerid][pInvWeapon] = 0;
    PlayerInfo[playerid][pInvAmmo] = 0;
    PlayerInfo[playerid][pSpeaker] = 0;
    PlayerInfo[playerid][pMaskuse] = 0;
    PlayerInfo[playerid][pRequestingBackup] = 0;
    PlayerInfo[playerid][pRoadblock] = 0;
    PlayerInfo[playerid][pDolar] = 0;
    PlayerInfo[playerid][pAdjustable] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pControleR] = 0;
    strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
    ClearCrime(playerid);
    ClearFishes(playerid);
    ClearCooking(playerid);
    ClearGroceries(playerid);
    ClearMarriage(playerid);
    new string[128];
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string), "Contas/%s.ini", plname);
    SendClientMessage(playerid, COLOR_YELLOW2, "Por favor aguarde...");
    PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
    SetPlayerCameraPos(playerid, 1778.8789,-1515.0527,60.0067);
    SetPlayerCameraLookAt(playerid, 1660.7501,-1411.7880,120.7915);

    SeeHUD[playerid] = false;

    if(fexist(string))
    {
        gPlayerAccount[playerid] = 1;
        new loginstring[128];
        new loginname[64];
        GetPlayerName(playerid,loginname,sizeof(loginname));
        format(loginstring,sizeof(loginstring),"Bem-Vindo ao Believe RP\nNome: %s\n\nPor favor insira sua senha:",loginname);
        ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Believe RP - Login",loginstring,"Logar","Sair");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        return 1;
    }
    else
    {
        gPlayerAccount[playerid] = 0;
        new regstring[128];
        new regname[64];
        GetPlayerName(playerid,regname,sizeof(regname));
        format(regstring,sizeof(regstring),"Bem-Vindo ao Believe RP\nConta nгo Registrada\nNome: %s\n\nPor favor insira sua senha:",regname);
        ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Believe RP - REGISTRO",regstring,"Registrar","Sair");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
        SendClientMessage(playerid, COLOR_WHITE, " ");
    }
    GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
    if(strcmp(playername,"Batman",true) == 0 || strcmp(playername,"Rocky",true) == 0 || strcmp(playername,"Carl",true) == 0 || strcmp(playername,"aux",true) == 0 || strcmp(playername,"con",true) == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "Me xupa FIDAPUTA, Sua mгe й minha desgraзado.");
        Ban(playerid);
        return 1;
    }
    if(strfind(playername,"_",true,1)!=-1)
    gw=1;
    if(playername[strlen(playername)-1]=='_')
    gw=0;
    for(new i=0;i<strlen(playername);i++)
    if((playername[i]<='9')&&(playername[i]>='0'))
    gw=0;
    if(!gw)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "Imigraзгo Believe RP: Seu nome nгo foi aceito em nossa agкncia.");
        SendClientMessage(playerid, COLOR_YELLOW2, "Dica: Seu nome deve estar no formato: Nome_Sobrenome.");
        Kick(playerid);
    }
    return 1;
}
public JoinChannel(playerid, number, line[])
{
    if(IsPlayerConnected(playerid))
    {
        if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
        {
            JoinChannelNr(playerid, number);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   A senha do canal estб INCORRETA !");
        }
    }
    return 1;
}

public JoinChannelNr(playerid, number)
{
    if(IsPlayerConnected(playerid))
    {
        new string[256];
        new sendername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(PlayersChannel[playerid] < 999)
        {
            format(string, sizeof(string), "%s saiu do canal.", sendername);
            SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
            IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
        }
        new channel; channel = number; channel += 1;
        PlayersChannel[playerid] = number;
        IRCInfo[PlayersChannel[playerid]][iPlayers] += 1;
        new wstring[128];
        format(string, sizeof(string), "%s", sendername);
        strmid(wstring, string, 0, strlen(string), 255);
        if(strcmp(IRCInfo[number][iAdmin],wstring, true ) == 0 )
        {
            format(string, sizeof(string), "Vocк entrou no Canal IRC %d como Administrador.", channel);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
        else
        {
            format(string, sizeof(string), "Vocк entrou no Canal IRC %d, Admins: %s.", channel, IRCInfo[number][iAdmin]);
            SendClientMessage(playerid, COLOR_YELLOW, string);
        }
        format(string, sizeof(string), "MOTD: %s.", IRCInfo[number][iMOTD]);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        format(string, sizeof(string), "(%s entrou no canal)", sendername);
        SendIRCMessage(number, COLOR_GREEN, string);
    }
    return 1;
}

public ClearMarriage(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhuma");
        strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
        PlayerInfo[playerid][pMarried] = 0;
    }
    return 1;
}

public ClearPaper(paper)
{
    new string[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Nenhum");
    PaperInfo[paper][PaperUsed] = 0;
    strmid(PaperInfo[paper][PaperMaker], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperTitle], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText1], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText2], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText3], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText4], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText5], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText6], string, 0, strlen(string), 255);
    strmid(PaperInfo[paper][PaperText7], string, 0, strlen(string), 255);
    SavePapers();
    return 1;
}

public ClearFamily(family)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pFMember] == family)
            {
                SendClientMessage(i, COLOR_LIGHTBLUE, "A famнlia em que vocк estava foi deletada pelo lнder da organizaзгo (saiu da famнlia)");
                PlayerInfo[i][pFMember] = 255;
            }
        }
    }
    new string[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Nenhum");
    FamilyInfo[family][FamilyTaken] = 0;
    strmid(FamilyInfo[family][FamilyName], string, 0, strlen(string), 255);
    strmid(FamilyInfo[family][FamilyMOTD], string, 0, strlen(string), 255);
    strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
    format(string, sizeof(string), "0xFF000069");
    strmid(FamilyInfo[family][FamilyColor], string, 0, strlen(string), 255);
    FamilyInfo[family][FamilyMembers] = 0;
    FamilyInfo[family][FamilySpawn][0] = 0.0;
    FamilyInfo[family][FamilySpawn][1] = 0.0;
    FamilyInfo[family][FamilySpawn][2] = 0.0;
    FamilyInfo[family][FamilySpawn][3] = 0.0;
    FamilyInfo[family][FamilyInterior] = 0;
    SaveFamilies();
    return 1;
}

public ClearCrime(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "********");
        strmid(PlayerCrime[playerid][pBplayer], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pVictim], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pAccusing], string, 0, strlen(string), 255);
        strmid(PlayerCrime[playerid][pAccusedof], string, 0, strlen(string), 255);
    }
    return 1;
}

public FishCost(playerid, fish)
{
    if(IsPlayerConnected(playerid))
    {
        new cost = 0;
        switch (fish)
        {
            case 1:
            {
                cost = 1;
            }
            case 2:
            {
                cost = 3;
            }
            case 3:
            {
                cost = 3;
            }
            case 5:
            {
                cost = 5;
            }
            case 6:
            {
                cost = 2;
            }
            case 8:
            {
                cost = 8;
            }
            case 9:
            {
                cost = 12;
            }
            case 11:
            {
                cost = 9;
            }
            case 12:
            {
                cost = 7;
            }
            case 14:
            {
                cost = 12;
            }
            case 15:
            {
                cost = 9;
            }
            case 16:
            {
                cost = 7;
            }
            case 17:
            {
                cost = 7;
            }
            case 18:
            {
                cost = 10;
            }
            case 19:
            {
                cost = 4;
            }
            case 21:
            {
                cost = 3;
            }
        }
        return cost;
    }
    return 0;
}

public ClearFishes(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
        Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
        Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
        Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
        strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
    }
    return 1;
}

public ClearFishID(playerid, fish)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        switch (fish)
        {
            case 1:
            {
                strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight1] = 0;
                Fishes[playerid][pFid1] = 0;
            }
            case 2:
            {
                strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight2] = 0;
                Fishes[playerid][pFid2] = 0;
            }
            case 3:
            {
                strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight3] = 0;
                Fishes[playerid][pFid3] = 0;
            }
            case 4:
            {
                strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight4] = 0;
                Fishes[playerid][pFid4] = 0;
            }
            case 5:
            {
                strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
                Fishes[playerid][pWeight5] = 0;
                Fishes[playerid][pFid5] = 0;
            }
        }
    }
    return 1;
}

public ClearCooking(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Cooking[playerid][pCookID1] = 0; Cooking[playerid][pCookID2] = 0; Cooking[playerid][pCookID3] = 0;
        Cooking[playerid][pCookID4] = 0; Cooking[playerid][pCookID5] = 0;
        Cooking[playerid][pCWeight1] = 0; Cooking[playerid][pCWeight2] = 0; Cooking[playerid][pCWeight3] = 0;
        Cooking[playerid][pCWeight4] = 0; Cooking[playerid][pCWeight5] = 0;
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
        strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
    }
    return 1;
}

public ClearCookingID(playerid, cook)
{
    if(IsPlayerConnected(playerid))
    {
        new string[MAX_PLAYER_NAME];
        format(string, sizeof(string), "Nenhum");
        switch (cook)
        {
            case 1:
            {
                strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight1] = 0;
                Cooking[playerid][pCookID1] = 0;
            }
            case 2:
            {
                strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight2] = 0;
                Cooking[playerid][pCookID2] = 0;
            }
            case 3:
            {
                strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight3] = 0;
                Cooking[playerid][pCookID3] = 0;
            }
            case 4:
            {
                strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight4] = 0;
                Cooking[playerid][pCookID4] = 0;
            }
            case 5:
            {
                strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
                Cooking[playerid][pCWeight5] = 0;
                Cooking[playerid][pCookID5] = 0;
            }
        }
    }
    return 1;
}

public ClearGroceries(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        Groceries[playerid][pChickens] = 0; Groceries[playerid][pChicken] = 0;
        Groceries[playerid][pHamburgers] = 0; Groceries[playerid][pHamburger] = 0;
        Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
    }
    return 1;
}

public Lotto(number)
{
    new JackpotFallen = 0;
    new string[256];
    new winner[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Loteria News: O nъmero ganhador foi %d", number);
    OOCOff(ORANGE, string);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pLottoNr] > 0)
            {
                if(PlayerInfo[i][pLottoNr] == number)
                {
                    JackpotFallen = 1;
                    GetPlayerName(i, winner, sizeof(winner));
                    format(string, sizeof(string), "Loteria News: %s ganhou o packpage com R$ %d ! ! !", winner, Jackpot);
                    OOCOff(ORANGE, string);
                    format(string, sizeof(string), "Vocк ganhou R$ %d com seu ticket de loteria.", Jackpot);
                    SendClientMessage(i, COLOR_LIGHTBLUE, string);
                    ConsumingMoney[i] = 1;
                    GivePlayerGP(i, Jackpot);
                }
                else
                {
                    SendClientMessage(i, COLOR_LIGHTBLUE, "Vocк nгo ganhou a loteria com este Ticket, tente na prуxima.");
                }
            }
            PlayerInfo[i][pLottoNr] = 0;
        }
    }
    if(JackpotFallen)
    {
        new rand = random(5000); rand += 789;
        Jackpot = rand;
        SaveStuff();
        format(string, sizeof(string), "Loteria News: O packpage se inicializou com R$ %d", Jackpot);
        OOCOff(COLOR_WHITE, string);
    }
    else
    {
        new rand = random(600); rand += 158;
        Jackpot += rand;
        SaveStuff();
        format(string, sizeof(string), "Loteria News: O packpage teve foi altuado para R$ %d", Jackpot);
        OOCOff(COLOR_WHITE, string);
    }
    return 1;
}
forward Pararmusica(playerid);
public Pararmusica(playerid)
{
    StopAudioStreamForPlayer(playerid); Ira fazer a musica parar de tocar.
    return 1;
}
Reply
#8

desculpa ae o double post o navegador que travou =X
Reply
#9

BlackCoder vc postou a mesma coisa.. isso dai ainda da erro..

Deagle, nao tem diferenзa no seu codigo pro meu.. ainda da o erro
Reply
#10

SetTimer("Pararmusica", 6000, false);

~~

Apague o " ; "
SetTimer("Pararmusica", 6000, false)

Acho q e isso '-'

Se Der. +REP :B
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)