Jump to content

Uzzi25

Membru
  • Posts

    245
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Uzzi25

  1. Salut doresc si eu ca din aceastea 2 sa fac un singur meniu de buy car

    Spoiler

    if(strcmp(cmd, "/buycar", true) == 0)
        {
            if(PlayerToPoint(3, playerid, 1448.6708,-2290.5664,13.5469) && GetPlayerVirtualWorld(playerid) == 0)
            {
            if(PlayerInfo[playerid][pPcarkey] != -1)
            {
            SendClientMessage(playerid, COLOR_WHITE, "Ai deja primul vehicul personal!");
            return 1;
            }
             if(PlayerInfo[playerid][pLevel] < 4)
            {
            SendClientMessage(playerid, COLOR_WHITE, "Ai nevoie de level 4 ca sa achizitionezi un vehicul!");
            return 1;
            }
             new string2[900], coordsstring[256];
             format(coordsstring, sizeof(coordsstring), "Bike - 900.000$ - In stock: %d", BikeStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nFreeway - 1.200.000$ - In stock: %d", FreewayStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nSunrise - 1.500.000$ - In stock: %d", SunriseStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nPhoenix - 2.000.000$ - In stock: %d", PhoenixStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nClub - 2.300.000$ - In stock: %d", ClubStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nSavana - 2.700.000$ - In stock: %d", SavanaStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nSlamvan - 3.000.000$ - In stock: %d", SlamvanStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nEuros - 4.000.000$ - In stock: %d", EurosStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nWindsor - 4.500.000$ - In stock: %d", WindsorStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nHuntley - 5.000.000$ - In stock: %d", HuntleyStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nBuffalo - 7500000$ - In stock: %d", BuffaloStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nComet - 8.000.000$ - In stock: %d", CometStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nJester - 8.500.000$ - In stock: %d", JesterStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nNRG 500 - 9.000.000$ - In stock: %d", NRGStock);
             strcat(string2,coordsstring);
             format(coordsstring, sizeof(coordsstring), "\nElegy - 12.000.000$ - In stock: %d", ElegyStock);
             strcat(string2,coordsstring);
             ShowPlayerDialog(playerid, DIALOGDEALER, DIALOG_STYLE_LIST, "{FFFFFF}Masini de level 4", string2, "Buy Car", "Close") ;
             return 1;
             }
             else if(PlayerToPoint(3, playerid, 1448.8104,-2283.3618,13.5469) && GetPlayerVirtualWorld(playerid) == 0)
             {
                 if(PlayerInfo[playerid][pPcarkey2] != -1)
                 {
                    SendClientMessage(playerid, COLOR_WHITE, "Ai deja al doilea vehicul personal!");
                    return 1;
                 }
                 if(PlayerInfo[playerid][pLevel] < 15)
                 {
                    SendClientMessage(playerid, COLOR_WHITE, "Ai nevoie de level 15 ca sa achizitionezi un vehicul!");
                    return 1;
                 }
                 new string2[900], coordsstring[256];
                 format(coordsstring, sizeof(coordsstring), "Sandking - 15.000.000$ - In stock: %d", SandkingStock);
                 strcat(string2,coordsstring);
                 format(coordsstring, sizeof(coordsstring), "\nBullet - 17.000.000$ - In stock: %d", BulletStock);
                 strcat(string2,coordsstring);
                 format(coordsstring, sizeof(coordsstring), "\nZR 350 - 18.000.000$ - In stock: %d", ZRStock);
                 strcat(string2,coordsstring);
                 format(coordsstring, sizeof(coordsstring), "\nSuper GT - 20.000.000$ - In stock: %d", GTStock);
                 strcat(string2,coordsstring);
                 format(coordsstring, sizeof(coordsstring), "\nInfernus - 40.000.000$ - In stock: %d", InfernusStock);
                 strcat(string2,coordsstring);
                 format(coordsstring, sizeof(coordsstring), "\nMonster - 30.000.000$ - In stock: %d", MonsterStock);
                 strcat(string2,coordsstring);
                 format(coordsstring, sizeof(coordsstring), "\nHotring A - 35.000.000$ - In stock: %d", HotringStock);
                 strcat(string2,coordsstring);
                 format(coordsstring, sizeof(coordsstring), "\nSultan - 36.000.000$ - In stock: %d", SultanStock);
                 strcat(string2,coordsstring);
                 format(coordsstring, sizeof(coordsstring), "\nMaverick - 50.000.000$ - In stock: %d", MaverickStock);
                 strcat(string2,coordsstring);
                 ShowPlayerDialog(playerid, DIALOGDEALER2, DIALOG_STYLE_LIST, "{FFFFFF}Masini de level 15", string2, "Buy Car", "Close") ;
             }
             else return SendClientMessage(playerid, COLOR_WHITE, "Trebuie sa fii la dealership ca sa achizitionezi un vehicul! Foloseste /gps.");
        }

     

    Ai incercat sa rezolvi singur?: Normal dar mise suprapun texturile

    Doresc ca meniul de jos cel de lv 15 sa treaca la lv 4 !

    Multumesc de ajutor !

  2. Acum 1 minut, Er0R a spus:

    1572.2820,-1391.4259,14.0234,225.7985

    In care:

    1572.2820 = X

    -1391.4259 = Y

    14.0234= Z 

    225.7985 = UNGHIUL

    Iar daca te intrebi ce este acel 293din fata coordonatelor este skinul pe care il aveai in momentul salvarii

     

    Multumesc ! 

  3. Acum 5 minute, Er0R a spus:

    https://wiki.sa-mp.com/wiki/Create3DTextLabel

    Foarte simplu

    Create3DTextLabel("(Aici scrii textul)",floatx,floaty,floatz,DrawDistance(cel ma folosit 20.0), 0(virtualworld), 1(distanta de la obiect la label);

    Nu ai inteles sa fac un  3DTextLabel stiu dar nu stiu care sunt coordonatele bune de aici AddPlayerClass(293,1572.2820,-1391.4259,14.0234,225.7985,0,0,0,0,0,0); //   adica care trebuie sa le adug gen cand setezi si spawn civil pe un server

  4. Salut probabli ca ce veti citi aici vise pare banal la fel si mie  dar chiar nu imi iese si nici nu stiu cum sa iau cordonatele !

    Doresc sa mut un 3DTextLabel spre ex:Create3DTextLabel("aaaaaaaaaaaaaa");

    Sa adaug cordonatele stiu unde dar nu stiu cum sa le iau din:AddPlayerClass(293,1572.2820,-1391.4259,14.0234,225.7985,0,0,0,0,0,0); // 

    Adica care trebuie luate ?

×
×
  • 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.