Jump to content

BlackWolf

Membru
  • Posts

    31
  • Joined

  • Last visited

Posts posted by BlackWolf

  1. [pawn] for(new h = 0; h < sizeof(HouseInfo); h++)
    {
    new bstr[256];
    if(HouseInfo[h][hOwned] == 0)
    {
    AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1);
    pickups++;
    format(bstr, sizeof(bstr), "{FF0000}Adresa: {60FF38}%s n {FFFFFF}Apasati {2CFC33} ENTER {FFFFFF}pentru a n intra/iesi", HouseInfo[h][hDiscription]);
    Create3DTextLabel(bstr,0x2CDBDEFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1.0,30.0, 0, 1);
    //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],31,0);
    }
    if(HouseInfo[h][hOwned] == 1)
    {
    AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1);
    pickups++;
    format(bstr, sizeof(bstr), "{FF0000}Adresa: {60FF38}%s n {FFFFFF}Apasati {2CFC33} ENTER {FFFFFF}pentru a n intra/iesi", HouseInfo[h][hDiscription]);
    Create3DTextLabel(bstr,0x9EC73DFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1.0,30.0, 0, 1);
    //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0);
    }
    }
    for(new h = 0; h < sizeof(BizzInfo); h++)
    {
    new adresa[255];
    if(BizzInfo[h][bOwned] == 0)
    {
    AddStaticPickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
    pickups++;
    format(adresa, sizeof(adresa), "{3366FF}%s n {FFFFFF}Apasati {2CFC33} ENTER {FFFFFF}pentru a n intra/iesi",BizzInfo[h][bMessage]);
    Create3DTextLabel(adresa,0x00CCFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1.0,30.0, 0, 1);
    }
    if(BizzInfo[h][bOwned] == 1)
    {
    AddStaticPickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
    pickups++;
    format(adresa, sizeof(adresa), "{3366FF}%s n {FFFFFF}Apasati {2CFC33} ENTER {FFFFFF}pentru a n intra/iesi",BizzInfo[h][bMessage]);
    Create3DTextLabel(adresa,0x00CCFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1.0,30.0, 0, 1);
    }
    }
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
    new adresa[255];
    if(SBizzInfo[h][sbOwned] == 0)
    {
    AddStaticPickup(1272, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],-1);
    pickups++;
    format(adresa, sizeof(adresa), "{3366FF}%s n {FFFFFF}Apasati {2CFC33} ENTER {FFFFFF}pentru a n intra/iesi",SBizzInfo[h][sbMessage]);
    Create3DTextLabel(adresa,0x00CCFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1.0,30.0, 0, 1);
    }
    if(SBizzInfo[h][sbOwned] == 1)
    {
    AddStaticPickup(1272, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],-1);
    pickups++;
    format(adresa, sizeof(adresa), "{3366FF}%s n {FFFFFF}Apasati {2CFC33} ENTER {FFFFFF}pentru a n intra/iesi",SBizzInfo[h][sbMessage]);
    Create3DTextLabel(adresa,0x00CCFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1.0,30.0, 0, 1);
    }
    }[/pawn]

     

    [pawn]for(new h = 0; h < sizeof(HouseInfo); h++)
    {
    if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
    {
    if(HouseInfo[h][hOwned] == 1)
    {
    if(HouseInfo[h][hRentabil] == 0)
    {
    format(string, sizeof(string), "~g~Proprietar: ~w~%s ~n~~g~Adresa: ~w~%s ~n~~g~Nivel : ~w~%d",HouseInfo[h][hOwner],HouseInfo[h][hDiscription],HouseInfo[h][hLevel]);
    }
    else
    {
    format(string, sizeof(string), "~g~Proprietar: ~w~%s ~n~~g~Adresa: ~w~%s ~n~~g~Nivel: ~w~%d ~n~~g~De Inchiriat: ~w~$%d",HouseInfo[h][hOwner],HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hRent]);
    }
    GameTextForPlayer(i, string, 5000, 3);
    return 1;
    }
    else
    {
    format(string, sizeof(string), "~g~Adresa: ~w~%s ~n~~g~Pret: ~w~$%d ~n~~g~Nivel: ~w~%d~n~ ~w~/buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
    GameTextForPlayer(i, string, 5000, 3);
    return 1;
    }

    }
    }[/pawn]

     

    Este tot ce am gasit cu adresa in gm .

     

  2. Problemă întâlnită (descriere): Am o problema cu casele .Cumpar casa respectiva si apoi cand vreau sa ies afara ma da la o alta casa . Problema asta o are toate casele ..
    Ero(area / rile) / warning-(ul / urile): ..
    Liniile de cod / sursa / script-ul: ...
    Imagini / Video (optional): ..
    Aţi încercat să rezolvaţi singur?: Da , am incercat . Nu imi iese nimic .

  3. Am o problema cu o usa ! Apas pe SPACE si nu mi se deschide usa !

    Uitati codul :

    [pawn] if(newkeys == KEY_SPRINT)

    {

    if(IsPlayerConnected(playerid))

    {

    if(IsACop(playerid))

    {

        if (PlayerToPoint(2, playerid,247.7196,75.8517,1003.6406))

    {

        if(pdgate1check == 1)

        {

            MoveDynamicObject(pdgate1,248.1533203125, 74.9296875, 1002.640625, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate1check = 0;

        }

        else

        {

        MoveDynamicObject(pdgate1,248.13235473633, 73.64102935791, 1002.640625, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate1check = 1;

          }

    }

    else if (PlayerToPoint(2, playerid,246.3366,72.1690,1003.6406))

    {

        if(pdgate2check == 1)

        {

            MoveDynamicObject(pdgate2_2,244.9296875, 72.59375, 1002.640625, 2.0);

            MoveDynamicObject(pdgate2_1,247.7861328125, 72.6396484375, 1002.640625, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate2check = 0;

        }

        else

        {

                                MoveDynamicObject(pdgate2_1,248.60148620605, 72.538047790527, 1002.6899414063, 2.0);

        MoveDynamicObject(pdgate2_2,244.23402404785, 72.526748657227, 1002.640625, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate2check = 1;

          }

    }

    else if (PlayerToPoint(2, playerid,250.3857,63.3842,1003.6406))

    {

        if(pdgate3check == 1)

        {

            MoveDynamicObject(pdgate3,250.66796875, 62.3876953125, 1002.640625, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate3check = 0;

        }

        else

        {

                                MoveDynamicObject(pdgate3,250.6474609375, 61.1298828125, 1002.640625, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate3check = 1;

          }

    }

    else if (PlayerToPoint(2, playerid,226.3167,75.7066,1005.0391))

    {

        if(pdgate4check == 1)

        {

            MoveDynamicObject(pdgate4,226.16796875, 74.9306640625, 1004.0390625, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate4check = 0;

        }

        else

        {

                                MoveDynamicObject(pdgate4,226.14428710938, 73.621040344238, 1004.0390625, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate4check = 1;

          }

    }

    else if (PlayerToPoint(2, playerid,219.9524,74.2027,1005.0391))

    {

        if(pdgate5check == 1)

        {

            MoveDynamicObject(pdgate5,219.599609375, 74.8271484375, 1006.6759033203, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate5check = 0;

        }

        else

        {

                                MoveDynamicObject(pdgate5,219.59765625, 74.8232421875, 1009.1759033203, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate5check = 1;

          }

    }

    else if (PlayerToPoint(2, playerid,259.1493,90.9155,1002.4453))

    {

        if(pdgate6check == 1)

        {

            MoveDynamicObject(pdgate6,259.0751953125, 91.8359375, 1004.0821533203, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate6check = 0;

        }

        else

        {

                                MoveDynamicObject(pdgate6,259.08660888672, 91.831809997559, 1006.3321533203, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate6check = 1;

          }

    }

    else if (PlayerToPoint(2, playerid,247.9505,86.8508,1003.6406))

    {

        if(pdgate7check == 1)

        {

            MoveDynamicObject(pdgate7,247.962890625, 87.8359375, 1005.2774658203, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate7check = 0;

        }

        else

        {

                                MoveDynamicObject(pdgate7,247.9786529541, 87.8359375, 1007.5274658203, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate7check = 1;

          }

    }

    else if (PlayerToPoint(2, playerid,222.0507,79.7589,1005.0391))

    {

        if(pdgate8check == 1)

        {

            MoveDynamicObject(pdgate8,222.0888671875, 80.7578125, 1006.6759033203, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si inchide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate8check = 0;

        }

        else

        {

                                MoveDynamicObject(pdgate8,222.09368896484, 80.758964538574, 1008.9259033203, 2.0);

          GetPlayerName(playerid, sendername, sizeof(sendername));

          format(string, sizeof(string), "* %s scoate un card si deschide usa cu el.", sendername);

          ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

          pdgate8check = 1;

          }

    }

    }

    }

    }[/pawn]

    Va rog sa ma ajutati pentru ca nu am idee ce are !

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