Jump to content

Warr007

Membru
  • Posts

    33
  • Joined

  • Last visited

Posts posted by Warr007

  1. Hey all,

    Am un hosting de samp 50 sloturi,dar GM e linkmania pe mysql...

    Nu pot baga profiler.so pe hosting zice ca nu am permisiunea si GM imi da unknowm mode deoarece nu are profiler.so

    Exista vreo cale sal bag sau sa ii pun un inlocuitor sa mearga GM ?

  2. Pai dupa ce ai creat baza de date trebe sa ai asa ceva in gamemode [pawn]#define SQL_HOST "hostu gen localhost(daca ti servarul din PC tau)"

    #define SQL_USER "numele userul-ui care lai creat "

    #define SQL_DATA "numele data"

    #define SQL_PASS "parola de la user"[/pawn]

    Le completezi cu datele CORECTE! . Ti-am dat eu niste indicatii mai sus sper sa intelegi.

    nu gasesc nici unde in GM asaceva

  3. Deci am pus acol dar mia dat o eroare uite ce am la OnPlayerConnect zimi tu la ce linie sa pun

    [pawn]public OnPlayerConnect(playerid)

    {

    if(IsPlayerNPC(playerid)) SpawnPlayer(playerid);

        //PlayerInfo[playerid][pEsperaIdioma] = 999;

        PlayersOnline ++;

        ConFly[playerid] = 0;

        new Hora, Minuto, Segundo;

    gettime(Hora, Minuto, Segundo);

    printf("%s a intrat pe server.",NumeEx(playerid));

    printf("\n\n=====>[MaxCs]: (%02d:%02d:%02d) Players Online %d/%d\n\n", Hora, Minuto, Segundo, PlayersOnline, GetMaxPlayers());

        SWATv2[playerid] = 0;

        LPuestos[playerid] = 0;

    new string[256];

    TextDrawAlignment(Tutorial[1][playerid],2);

    Tutorial[1][playerid] = TextDrawCreate(316.000000,99.000000,"");

    Tutorial[2][playerid] = TextDrawCreate(316.000000,114.000000,"");

    Tutorial[3][playerid] = TextDrawCreate(321.000000,131.000000,"");

    TextDrawAlignment(Tutorial[0][playerid],2);

    TextDrawAlignment(Tutorial[1][playerid],2);

    TextDrawAlignment(Tutorial[2][playerid],2);

    TextDrawAlignment(Tutorial[3][playerid],2);

    TextDrawBackgroundColor(Tutorial[0][playerid],0x000000ff);

    TextDrawBackgroundColor(Tutorial[1][playerid],0x000000ff);

    TextDrawBackgroundColor(Tutorial[2][playerid],0x000000ff);

    TextDrawBackgroundColor(Tutorial[3][playerid],0x000000ff);

    TextDrawFont(Tutorial[0][playerid],0);

    TextDrawLetterSize(Tutorial[0][playerid],0.899999,2.499999);

    TextDrawFont(Tutorial[1][playerid],2);

    TextDrawLetterSize(Tutorial[1][playerid],0.299999,1.600000);

    TextDrawFont(Tutorial[2][playerid],2);

    TextDrawLetterSize(Tutorial[2][playerid],0.299999,1.700000);

    TextDrawFont(Tutorial[3][playerid],2);

    TextDrawLetterSize(Tutorial[3][playerid],0.299999,1.700000);

    TextDrawColor(Tutorial[0][playerid],0xcc3300ff);

    TextDrawColor(Tutorial[1][playerid],0x669999ff);

    TextDrawColor(Tutorial[2][playerid],0x669999ff);

    TextDrawColor(Tutorial[3][playerid],0x669999ff);

    TextDrawSetOutline(Tutorial[0][playerid],1);

    TextDrawSetOutline(Tutorial[1][playerid],1);

    TextDrawSetOutline(Tutorial[2][playerid],1);

    TextDrawSetOutline(Tutorial[3][playerid],1);

    TextDrawSetProportional(Tutorial[0][playerid],1);

    TextDrawSetProportional(Tutorial[1][playerid],1);

    TextDrawSetProportional(Tutorial[2][playerid],1);

    TextDrawSetProportional(Tutorial[3][playerid],1);

    TextDrawSetShadow(Tutorial[0][playerid],1);

    TextDrawSetShadow(Tutorial[1][playerid],1);

    TextDrawSetShadow(Tutorial[2][playerid],1);

    TextDrawSetShadow(Tutorial[3][playerid],1);

    Reloj[0][playerid] = TextDrawCreate(550.000000,271.000000,"~n~~n~_11__12__1~n~10_________2~n~9_____|_____3~n~_8_________4~n~___7__6__5");

    Reloj[1][playerid] = TextDrawCreate(545.000000,260.000000,"__~r~~h~Ceas~n~~l~ --------");

    TextDrawUseBox(Reloj[0][playerid],1);

    TextDrawBoxColor(Reloj[0][playerid],0x00000033);

    TextDrawTextSize(Reloj[0][playerid],619.000000,0.000000);

    TextDrawAlignment(Reloj[0][playerid],0);

    TextDrawAlignment(Reloj[1][playerid],0);

    TextDrawBackgroundColor(Reloj[0][playerid],0x00000099);

    TextDrawBackgroundColor(Reloj[1][playerid],0x000000ff);

    TextDrawFont(Reloj[0][playerid],1);

    TextDrawLetterSize(Reloj[0][playerid],0.299999,1.200000);

    TextDrawFont(Reloj[1][playerid],0);

    TextDrawLetterSize(Reloj[1][playerid],0.599999,1.600000);

    TextDrawColor(Reloj[0][playerid],0xffffffff);

    TextDrawColor(Reloj[1][playerid],0xffffffff);

    TextDrawSetOutline(Reloj[0][playerid],1);

    TextDrawSetOutline(Reloj[1][playerid],1);

    TextDrawSetProportional(Reloj[0][playerid],1);

    TextDrawSetProportional(Reloj[1][playerid],1);

    TextDrawSetShadow(Reloj[0][playerid],1);

    TextDrawSetShadow(Reloj[1][playerid],1);

    Reloj[2][playerid] = TextDrawCreate(550.000000,352.000000,"____00:00");

    TextDrawUseBox(Reloj[2][playerid],1);

    TextDrawBoxColor(Reloj[2][playerid],0x00000033);

    TextDrawTextSize(Reloj[2][playerid],619.000000,0.000000);

    TextDrawAlignment(Reloj[2][playerid],0);

    TextDrawBackgroundColor(Reloj[2][playerid],0x000000ff);

    TextDrawFont(Reloj[2][playerid],3);

    TextDrawLetterSize(Reloj[2][playerid],0.299999,1.200000);

    TextDrawColor(Reloj[2][playerid],0xffffffff);

    TextDrawSetOutline(Reloj[2][playerid],1);

    TextDrawSetProportional(Reloj[2][playerid],1);

    //ExpN[playerid] = CreateProgressBar(50.00, 426.00, 75.50, 3.20, 0xFF9700FF, 100.0);

        //SuciVarsta[playerid] = CreateProgressBar(144.00, 426.00, 74.50, 3.20, 0xA37EFFFF, 100.0); //0x49B429FF

        SuciVarstaPJ[playerid] = CreateProgressBar(548.00, 36.00, 56.50, 3.50, -1551958017, 100.0);

        //BGasolina[playerid] = CreateProgressBar(144.00, 402.00, 74.50, 3.20, 7527679, 100.0);

        //SetProgressBarMaxValue(BGasolina[playerid], 100);

    //SetProgressBarMaxValue(SuciVarsta[playerid], 100);

    TSuciVarsta[playerid] = SetTimerEx("BajaSuciVarsta",240000,1,"d",playerid);

    /*GasolinaT[playerid] = TextDrawCreate(159.000000,389.000000,"Gasolina");

    TextDrawAlignment(GasolinaT[playerid],0);

    TextDrawBackgroundColor(GasolinaT[playerid],0x000000ff);

    TextDrawFont(GasolinaT[playerid],2);

    TextDrawLetterSize(GasolinaT[playerid],0.199999,1.000000);

    TextDrawColor(GasolinaT[playerid],0xffffffff);

    TextDrawSetOutline(GasolinaT[playerid],1);

    TextDrawSetProportional(GasolinaT[playerid],1);

    TextDrawSetShadow(GasolinaT[playerid],1);*/

    InfoBox[playerid] = TextDrawCreate(37.000000,127.000000,"test");

    TextDrawUseBox(InfoBox[playerid],1);

    TextDrawBoxColor(InfoBox[playerid],0x00000033);

    TextDrawTextSize(InfoBox[playerid],217.000000,59.000000);

    TextDrawAlignment(InfoBox[playerid],0);

    TextDrawBackgroundColor(InfoBox[playerid],0x000000ff);

    TextDrawFont(InfoBox[playerid],2);

    TextDrawLetterSize(InfoBox[playerid],0.199999,1.200005);

    TextDrawColor(InfoBox[playerid],0xffffffff);

    TextDrawSetOutline(InfoBox[playerid],1);

    TextDrawSetProportional(InfoBox[playerid],1);

    TextDrawSetShadow(InfoBox[playerid],1);

        FlashR[playerid] = TextDrawCreate(1.000000,2.000000,"_");

    TextDrawTextSize(FlashR[playerid],640.000000,0.000000);

    TextDrawLetterSize(FlashR[playerid],1.000000,50.000000);

    TextDrawUseBox(FlashR[playerid],1);

    TextDrawAlignment(FlashR[playerid],0);

    TextDrawFont(FlashR[playerid],3);

    TextDrawSetOutline(FlashR[playerid],1);

    TextDrawSetProportional(FlashR[playerid],1);

    TextDrawSetShadow(FlashR[playerid],1);

    TextDrawBackgroundColor(FlashR[playerid],0xD2000033);

    TextDrawColor(FlashR[playerid],0xffffffff);

    TextDrawBoxColor(FlashR[playerid],0xD2000099);

    FlashB[playerid] = TextDrawCreate(1.000000,2.000000,"_");

    TextDrawTextSize(FlashB[playerid],640.000000,0.000000);

    TextDrawLetterSize(FlashB[playerid],1.000000,50.000000);

    TextDrawUseBox(FlashB[playerid],1);

    TextDrawAlignment(FlashB[playerid],0);

    TextDrawFont(FlashB[playerid],3);

    TextDrawSetOutline(FlashB[playerid],1);

    TextDrawSetProportional(FlashB[playerid],1);

    TextDrawSetShadow(FlashB[playerid],1);

    TextDrawBackgroundColor(FlashB[playerid],0xFFFFFFBB);

    TextDrawColor(FlashB[playerid],0xffffffff);

    TextDrawBoxColor(FlashB[playerid],0xFFFFFFBB);

        AntiDeAMX();

    PaginaServer[1][playerid] = TextDrawCreate(524.000000,13.000000,"WwW.Forum.MaxCs.Ro");

    TextDrawAlignment(PaginaServer[1][playerid],0);

    TextDrawBackgroundColor(PaginaServer[1][playerid],0x000000ff);

    TextDrawFont(PaginaServer[1][playerid],1);

    TextDrawLetterSize(PaginaServer[1][playerid],0.199999,0.799999);

    TextDrawColor(PaginaServer[1][playerid],0xffffffff);

    TextDrawSetOutline(PaginaServer[1][playerid],1);

    TextDrawSetProportional(PaginaServer[1][playerid],1);

    TextDrawSetShadow(PaginaServer[1][playerid],1);

    NoGPSTEXT[playerid] = TextDrawCreate(60.000000,361.000000,"~g~~h~~h~_Harta");

    TextDrawAlignment(NoGPSTEXT[playerid],0);

    TextDrawBackgroundColor(NoGPSTEXT[playerid],669999);

    TextDrawFont(NoGPSTEXT[playerid],2);

    TextDrawLetterSize(NoGPSTEXT[playerid],0.399999,1.800000);

    TextDrawColor(NoGPSTEXT[playerid],669999);

    TextDrawSetOutline(NoGPSTEXT[playerid],1);

    TextDrawSetProportional(NoGPSTEXT[playerid],1);

    TextDrawSetShadow(NoGPSTEXT[playerid],1);

        STATS[playerid] = TextDrawCreate(537.000000,381.000000,"~w~Level: ~g~10~n~~w~Telefon: ~y~169580~n~~w~Varsta:~g~ 20");

    TextDrawUseBox(STATS[playerid],1);

    TextDrawBoxColor(STATS[playerid],0x00000066);

    TextDrawTextSize(STATS[playerid],624.000000,0.000000);

    TextDrawAlignment(STATS[playerid],0);

    TextDrawBackgroundColor(STATS[playerid],0x00000099);

    TextDrawFont(STATS[playerid],2);

    TextDrawLetterSize(STATS[playerid],0.199999,1.000000);

    TextDrawColor(STATS[playerid],0xffffffff);

    TextDrawSetOutline(STATS[playerid],1);

    TextDrawSetProportional(STATS[playerid],1);

    TextDrawSetShadow(STATS[playerid],1);

    /*ExperienciaT[playerid] = TextDrawCreate(61.000000,414.000000,"Experiencia");

    TextDrawAlignment(ExperienciaT[playerid],0);

    TextDrawBackgroundColor(ExperienciaT[playerid],0x000000ff);

    TextDrawFont(ExperienciaT[playerid],2);

    TextDrawLetterSize(ExperienciaT[playerid],0.199999,1.000000);

    TextDrawColor(ExperienciaT[playerid],0xffffffff);

    TextDrawSetOutline(ExperienciaT[playerid],1);

    TextDrawSetProportional(ExperienciaT[playerid],1);

    TextDrawSetShadow(ExperienciaT[playerid],1);*/

    /*TextSuc[playerid] = TextDrawCreate(161.000000,414.000000,"SuciVarsta");

    TextDrawAlignment(TextSuc[playerid],0);

    TextDrawBackgroundColor(TextSuc[playerid],0x000000ff);

    TextDrawFont(TextSuc[playerid],2);

    TextDrawLetterSize(TextSuc[playerid],0.199999,0.899999);

    TextDrawColor(TextSuc[playerid],0xffffffff);

    TextDrawSetOutline(TextSuc[playerid],1);

    TextDrawSetProportional(TextSuc[playerid],1);

    TextDrawSetShadow(TextSuc[playerid],1);*/

    Conce0[playerid] = TextDrawCreate(219.000000,348.000000,"Salon Auto");

    Conce1[playerid] = TextDrawCreate(211.000000,361.000000,"~n~~w~Nume: ~b~Infernus~n~~w~Pret: ~g~$~r~50000");

    TextDrawUseBox(Conce1[playerid],1);

    TextDrawBoxColor(Conce1[playerid],0x00000066);

    TextDrawTextSize(Conce1[playerid],380.000000,0.000000);

    TextDrawAlignment(Conce0[playerid],0);

    TextDrawAlignment(Conce1[playerid],0);

    TextDrawBackgroundColor(Conce0[playerid],0x000000ff);

    TextDrawBackgroundColor(Conce1[playerid],0x000000ff);

    TextDrawFont(Conce0[playerid],0);

    TextDrawLetterSize(Conce0[playerid],0.599999,1.900000);

    TextDrawFont(Conce1[playerid],2);

    TextDrawLetterSize(Conce1[playerid],0.299999,1.500000);

    TextDrawColor(Conce0[playerid],0xffffffff);

    TextDrawColor(Conce1[playerid],0xffffffff);

    TextDrawSetOutline(Conce0[playerid],1);

    TextDrawSetOutline(Conce1[playerid],1);

    TextDrawSetProportional(Conce0[playerid],1);

    TextDrawSetProportional(Conce1[playerid],1);

    TextDrawSetShadow(Conce0[playerid],1);

    TextDrawSetShadow(Conce1[playerid],1);

    Taximetru[playerid] = TextDrawCreate(501.000000,111.000000,"~r~Taximetru~n~~n~~w~Distanta: ~y~15 ~p~M ~n~~w~Total: ~g~$5");

    TextDrawUseBox(Taximetru[playerid],1);

    TextDrawBoxColor(Taximetru[playerid],0x00000033);

    TextDrawTextSize(Taximetru[playerid],607.000000,0.000000);

    TextDrawAlignment(Taximetru[playerid],0);

    TextDrawBackgroundColor(Taximetru[playerid],0x000000ff);

    TextDrawFont(Taximetru[playerid],2);

    TextDrawLetterSize(Taximetru[playerid],0.199999,1.100000);

    TextDrawColor(Taximetru[playerid],0xffffffff);

    TextDrawSetOutline(Taximetru[playerid],1);

    TextDrawSetProportional(Taximetru[playerid],1);

    TextDrawSetShadow(Taximetru[playerid],1);

    Registro[playerid] = TextDrawCreate(440.000000,134.000000,"~r~_________Inregistrare ~n~~w~Eu sunt:~y~~<~ Barbat ~>~~n~~w~Varsta: ~b~~<~21~>~ ~n~~w~Origine: ~b~~<~Africa~>~");

    TextDrawUseBox(Registro[playerid],1);

    TextDrawBoxColor(Registro[playerid],0x00000066);

    TextDrawTextSize(Registro[playerid],630.000000,10.000000);

    TextDrawAlignment(Registro[playerid],0);

    TextDrawBackgroundColor(Registro[playerid],0x000000ff);

    TextDrawFont(Registro[playerid],2);

    TextDrawLetterSize(Registro[playerid],0.399999,1.600000);

    TextDrawColor(Registro[playerid],0xffffffff);

    TextDrawSetOutline(Registro[playerid],1);

    TextDrawSetProportional(Registro[playerid],1);

    TextDrawSetShadow(Registro[playerid],1);

    Conectado[playerid] = 0;

    gActivePlayers[playerid]++;

    numplayers++;

    //new string[MAX_PLAYER_NAME];

    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;

        ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;

    KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;

    CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1;

    CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;

    RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; Rope[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;

    DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;

    DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;

    JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;

    WantedPoints[playerid] = 0; GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;

    OnDuty[playerid] = 0; WantedLevel[playerid] = 0; tactical[playerid] = 0; swat[playerid] = 0; TestFishes[playerid] = 0;

    BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0;

    SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerBan[playerid] = 0; PlayerKick[playerid] = 0; PlayerOOC[playerid] = 0; PlayerTied[playerid] = 0;

    BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;

    BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[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;*/

    ScriptMoney[playerid] = 0; ScriptMoneyUpdated[playerid] = 0;

    for (new c=0; c<13; c++) ScriptWeapons[playerid][c] = 0;

    ScriptWeaponsUpdated[playerid] = 0;

        gLastCar[playerid] = 0; FirstSpawn[playerid] = 1;

    gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; aFam[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;

    gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999;

    PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;

    HireCar[playerid] = 299; GangCar[playerid] = 512; PlayersChannel[playerid] = 999;

    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;

    Locator[playerid] = 0; PlayerOnMission[playerid] = 0; MissionCheckpoint[playerid] = 0;

    WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;

    Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;

    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;

    GivePlayerMoneyGR(playerid,PlayerInfo[playerid][pCash]); tactical[playerid] = 0; swat[playerid] = 0; authorizeswat = 0; authorizetactical = 0;

    PizzaCallTime[playerid] = 0; bPizza[playerid] = 0; sPizza[playerid] = 0; gEngine[playerid] = 0; FarmerVar[playerid] = 0; FarmerPickup[playerid][0] = 0; SmugglerWork[playerid] = 0; SmuggledDrugs[playerid] = 0; JustDied[playerid] = 0; KnockedDown[playerid] = 0; UnidentifedCall[playerid] = 0;

    LicenseOffer[playerid] = 999; LicensePrice[playerid] = 0; LicenseType[playerid] = 0; UsingDrugs[playerid] = 0; AfterTutorial[playerid] = 0;

    BlindFold[playerid] = 0; PlayerIsSweeping[playerid] = 0; aod[playerid] = 0; /*EscuelaDuty[playerid] = 0; */JustReported[playerid] = 0; PlayerNeedsHelp[playerid] = 0; AdminSpec[playerid] = 0; IsSmoking[playerid] = 0; UsingSmokeAnim[playerid] = 0; ReduceTime[playerid] = 0;

    CreatingGun[playerid] = 0; CreatingGunAmmo[playerid] = 0; CreatingGunPrice[playerid] = 0; IsPuttingMaterials[playerid] = 0; IsTakingGun[playerid] = 0;

    InAFoodPlace[playerid] = 0;

    PlayerInfo[playerid][pLevel] = 3;

    PlayerInfo[playerid][pAdmin] = 0;

    PlayerInfo[playerid][pHelper] = 0;

    //PlayerInfo[playerid][pEscuela] = 0; //colado!

    PlayerInfo[playerid][pDonateRank] = 0;

    PlayerInfo[playerid][gPupgrade] = 0;

    PlayerInfo[playerid][pConnectTime] = 0;

    PlayerInfo[playerid][pReg] = 0;

    PlayerInfo[playerid][pSex] = 0;

    PlayerInfo[playerid]


    = 0;

    PlayerInfo[playerid][pOrigin] = 0;

    PlayerInfo[playerid][pExp] = 0;

    PlayerInfo[playerid][pAccount] = 0;

    PlayerInfo[playerid][pWstyles] = 1;

    PlayerInfo[playerid][pCrimes] = 0;

    PlayerInfo[playerid][pDeaths] = 0;

    PlayerInfo[playerid][pArrested] = 0;

    PlayerInfo[playerid][pWantedDeaths] = 0;

    PlayerInfo[playerid][pPhoneBook] = 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][pJailed] = 0;

    PlayerInfo[playerid][pJailTime] = 0;

    PlayerInfo[playerid][pMats] = 0;

    PlayerInfo[playerid][pDrugs] = 3;

    PlayerInfo[playerid][pLeader] = 0;

    PlayerInfo[playerid][pMember] = 0;

    PlayerInfo[playerid][pFMember] = 255;

    PlayerInfo[playerid][pRank] = 0;

    PlayerInfo[playerid][pChar] = 7;

    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] = 1612.3240;

    PlayerInfo[playerid][pPos_y] = -2330.1670;

    PlayerInfo[playerid][pPos_z] = 13.5469;

    PlayerInfo[playerid][pInt] = 0;

    PlayerInfo[playerid][pLocal] = 255;

    PlayerInfo[playerid][pTeam] = 3;

    PlayerInfo[playerid][pModel] = 7;

    new randphone = 100000 + random(899999);//minimum 1000  max 9999 //giving one at the start

    PlayerInfo[playerid][pPnumber] = randphone;

    PlayerInfo[playerid][pPcarkey] = 999;

    PlayerInfo[playerid][pPcarkey2] = 999;

    PlayerInfo[playerid][pPcarkey3] = 999;

    PlayerInfo[playerid][pLlaveP1] = 999;

    PlayerInfo[playerid][pLlaveP2] = 999;

    PlayerInfo[playerid][pLlaveP3] = 999;

    PlayerInfo[playerid][pPhousekey] = 255;

    PlayerInfo[playerid][pGangKey] = 255;

    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][pWatch] = 0;

    PlayerInfo[playerid][pCrashed] = 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][pMissionNr] = 0;

    PlayerInfo[playerid][pWarns] = 0;

    PlayerInfo[playerid][pFuel] = 0;

    PlayerInfo[playerid][pVirWorld] = 0;

    PlayerInfo[playerid][pRequestingBackup] = 0;

    PlayerInfo[playerid][pRoadblock] = 0;

    PlayerInfo[playerid][pFishTool] = 0;

    strmid(PlayerInfo[playerid][pNote1], "None", 0, strlen("None"), 255);

    PlayerInfo[playerid][pNote1s] = 0;

    strmid(PlayerInfo[playerid][pNote2], "None", 0, strlen("None"), 255);

    PlayerInfo[playerid][pNote2s] = 0;

    strmid(PlayerInfo[playerid][pNote3], "None", 0, strlen("None"), 255);

    PlayerInfo[playerid][pNote3s] = 0;

    strmid(PlayerInfo[playerid][pNote4], "None", 0, strlen("None"), 255);

    PlayerInfo[playerid][pNote4s] = 0;

    strmid(PlayerInfo[playerid][pNote5], "None", 0, strlen("None"), 255);

    PlayerInfo[playerid][pNote5s] = 0;

    PlayerInfo[playerid][pInvWeapon] = 0;

    PlayerInfo[playerid][pInvAmmo] = 0;

    PlayerInfo[playerid][pLighter] = 0;

    PlayerInfo[playerid][pCigarettes] = 0;

    PlayerInfo[playerid][pMask] = 0;

    PlayerInfo[playerid][pMaskuse] = 0;

    PlayerInfo[playerid][pHideNumber] = 0;

    PlayerInfo[playerid][pSpeaker] = 0;

    PlayerInfo[playerid][pLocked] = 0;

    PlayerInfo[playerid][pBomba] = 0; //colado

    //PlayerInfo[playerid][pSQLID] = 0;

    ClearCrime(playerid);

    ClearFishes(playerid);

    ClearCooking(playerid);

    ClearGroceries(playerid);

    ClearMarriage(playerid);

    SetPlayerColor(playerid,COLOR_GRAD2);

    HouseEntered[playerid] = 255;

    for(new h = CDesde; h < sizeof(CarInfo); h++)

    {

    SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);

    }

    /*for(new i; i < MAX_PLAYERS; i++)

    {

        if (IsPlayerConnected(i))

        {

            SetVehicleParamsForPlayer(184,i,false,true);

    SetVehicleParamsForPlayer(185,i,false,true);

    SetVehicleParamsForPlayer(186,i,false,true);

    SetVehicleParamsForPlayer(187,i,false,true);

    SetVehicleParamsForPlayer(188,i,false,true);

    SetVehicleParamsForPlayer(189,i,false,true);

    SetVehicleParamsForPlayer(190,i,false,true);

        }

    }

    */

    LimpiarPantalla(playerid);

    /*TextDrawShowForPlayer(playerid,Welcome[0][playerid]);

    TextDrawShowForPlayer(playerid,Welcome[1][playerid]);

    TextDrawShowForPlayer(playerid,Welcome[2][playerid]);

    TextDrawShowForPlayer(playerid,Welcome[3][playerid]);

    TextDrawShowForPlayer(playerid,Welcome[4][playerid]);*/

    ObiectConectat[playerid] = CreatePlayerObject(playerid,18750,1413.6752,-1040.2668,148.6437,90.0,60.0,180.0);

    if(fexist(string))

    {

            SendClientMessage(playerid, COLOR_GREEN," {CCFFFF}Serverul se incarca...");

    }

    else

    {

          SendClientMessage(playerid, COLOR_GREEN," {CCFFFF}Serverul se incarca...");

    }

    return 1;

    }

    stock LimpiarPantalla(playerid)

    {

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

        SendClientMessage(playerid, COLOR_YELLOW, "");

    }

    public JoinChannel(playerid, number, line[])

    {

        if(IsPlayerConnected(playerid))

    {

        if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )

    {

            JoinChannelNr(playerid, number);

        }

        else

        {

            SendClientMessage(playerid, COLOR_GREY, "  Wrong Channel Password !");

        }

    }

    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 salio del canal.", NumeEx(playerid));

    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", NumeEx(playerid));

    strmid(wstring, string, 0, strlen(string), 255);

    if(strcmp(IRCInfo[number][iAdmin],wstring, true ) == 0 )

    {

        format(string, sizeof(string), "* You have joined IRC Channel %d as the Administrator.", channel);

    SendClientMessage(playerid, COLOR_YELLOW, string);

    }

    else

    {

        format(string, sizeof(string), "* You have joined IRC Channel %d, Admin: %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 has joined the Channel.", NumeEx(playerid));

    SendIRCMessage(number, COLOR_GREEN, string);

    }

    return 1;

    }

    public ClearCK(ck)

    {

        new string[MAX_PLAYER_NAME];

    format(string, sizeof(string), "Nimic");

    strmid(CKInfo[ck][cSendername], string, 0, strlen(string), 255);

    strmid(CKInfo[ck][cGiveplayer], string, 0, strlen(string), 255);

    CKInfo[ck][cUsed] = 0;

    SaveCK();

    return 1;

    }

    public ClearMarriage(playerid)

    {

    if(IsPlayerConnected(playerid))

    {

        new string[MAX_PLAYER_NAME];

    format(string, sizeof(string), "Nimic");

    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), "Nimic");

    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[pFMember] == family)

            {

                SendClientMessage(i, COLOR_WHITE, "* The Family you are in got Deleted by the Organisation Leader, you got kicked out automaticly.");

                PlayerInfo[pFMember] = 255;

            }

        }

    }

        new string[MAX_PLAYER_NAME];

    format(string, sizeof(string), "Nimic");

    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), "Nimic");

    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), "Nimic");

    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), "Nimic");

    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), "Nimic");

    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 Romana: Numarul castigator de astazi este %d.", number);

        OOCOff(COLOR_WHITE, string);

        for(new i = 0; i < MAX_PLAYERS; i++)

    {

    if(IsPlayerConnected(i))

    {

        if(PlayerInfo[pLottoNr] > 0)

        {

        if(PlayerInfo[pLottoNr] == number)

        {

            JackpotFallen = 1;

            GetPlayerName(i, winner, sizeof(winner));

    //format(string, sizeof(string), "~b~Loteria:~w~El numero sr es el ~y~%d.~n~~y~%s ~w~ha s la loteria de ~g~$%d",number,NumeEx(i), Jackpot);

    //OOCOff(COLOR_DBLUE, string);

    //InfoBoxForPlayer(playerid,string);

    format(string, sizeof(string), "* Ai castigat la Loteria Romana suma de $%d. Nmarul castigator a fost {CC3300}%d.", Jackpot,number);

    SendClientMessage(i, COLOR_YELLOW, string);

    //ConsumingMoney = 1;

    GivePlayerMoneyGR(i, Jackpot);

        }

        else

        {

            SendClientMessage(i, COLOR_WHITE, "* Numarul tau nu este castigator si nu ai primit niciun ban!");

        }

    }

    PlayerInfo[pLottoNr] = 0;

    }

    }

    if(JackpotFallen)

    {

        new rand = random(125000); rand += 15789;

        Jackpot = rand;

        SaveStuff();

        //format(string, sizeof(string), "~b~Loteria:~w~El numero sr es el ~y~%d.~n~~y~%s ~w~ha s la loteria de ~g~$%d",number,NumeEx(i), Jackpot);

    //InfoBoxForPlayer(playerid,string);

    }

    else

    {

        new rand = random(15000); rand += 2158;

        Jackpot += rand;

        SaveStuff();

        //format(string, sizeof(string), "Loteria: La bolsa de la loteria sa en $%d.", Jackpot);

    // OOCOff(COLOR_DBLUE, string);

    }

    return 1;

    }

    public OnVehicleSpawn(vehicleid)

    {

    engineOn[vehicleid] = false;

        BorraTunS(vehicleid);

        CargarTunS(vehicleid);

        new enginem, lights, alarm, doors, bonnet, boot, objective;

        GetVehicleParamsEx(vehicleid,enginem, lights, alarm, doors, bonnet, boot, objective);

    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);

    return 1;

    }[/pawn]

  4. Hey all,astazi am scos niste obiecte dintrun GameMode,cu Map Editator dar cand iam dat export mia cerut sa pun numele fisierului si mia dat un fisier .pwn si in GameMode nu sa modificat,cum fac sa pun acel fisier primit de la map editrator in gamemode ??

  5. Salutare,sunt putin mai nou in domeniul SCRIPTING,si am nevoie la un GM de ceva chesti.Daca ma puteti ajuta lasati un post reply sa va dau pm cu id.Am sa va zic ce vreu...

    Pai asi vrea comanda /fixvehall sa repare masina la toti jucatori

    /startevent sa porneasca un event

    cand dai /aod sa iti apara papagal pe umar

    /o sa fie modificat in gen la admin 1339 (( Owner Warr007 : test )) va explic cu culorile cum vreu sa arete owner.

    /ec

    Apoi asi vrea sa scot mysql de pe sv daca se poate...

    Va multumesc

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.