Jump to content

Frunzaa

Membru
  • Posts

    17
  • Joined

  • Last visited

Posts posted by Frunzaa

  1. Salut , cum pot muta sistemul de billboard din bluffsv3 , intr-un gm gen bhood , sunt unele chestii pe care nu le gasesc in acest gamemode de ex nu stiu unde il pot pune pe asta.sper sa ma ajute cineva , multumesc

    Quote

        format(query, sizeof(query), "SELECT * FROM `billboards` WHERE `time` < '%d' AND `time`!='0' ORDER BY `ID`",gettime());
        new Cache: stringresult11 = mysql_query(SQL, query);
        new billsrep = cache_get_row_count();
           for(new pk = 1; pk <= billsrep; pk++)
        {
            new billid,ownerbill[64];
            billid = cache_get_field_content_int(0, "ID");
            cache_get_field_content(0, "BillOwner", ownerbill, SQL, 64);
            format(bBill[billid][bBillOwner], 64, "AdmBot");
            format(bBill[billid][bBillText], 128, "bluffs.ro");
            bBill[billid][bBillTime]                        = 0;
            bBill[billid][bBillTextSize]                    = 25;
            DestroyBillBoard(billid);
            foreach(new id : Player)
            {
                if(strcmp(PlayerInfo[id][pNormalName],ownerbill,true) == 0)
                {
                    new stringz2[128];
                    format(stringz2,sizeof(stringz2), "(Info){FFFFFF} Your billboard (#%d) was expired.",billid);
                    SendClientMessage(id, COLOR_JOB, stringz2);
                    PlayerInfo[id][pBillboard] = 0;
                }
            }
            mysql_format(SQL,var100, sizeof(var100), "UPDATE `users` SET `Billboard`='0' WHERE `name`='%s'", ownerbill);
            mysql_tquery(SQL,var100,"","");

            mysql_format(SQL,var100, sizeof(var100), "UPDATE `billboards` SET `BillOwner`='AdmBot',`BillText`='bluffs.ro',`time`='0',`BillTextSize`='25' WHERE `ID`='%d'",billid);
            mysql_tquery(SQL,var100,"","");
        }
        cache_delete(stringresult11);

     

  2. Salut, am gamemode-ul bluffs si am o problema la sistemul de pet cand "tezesc " pet-ul nu imi apare numele!

        format(str, sizeof(str), "{D6A7F1}%s(lvl %d)", PlayerInfo[playerid][pPetName], PlayerInfo[playerid][pPetLevel]);
        Pet[playerid] = CreateDynamic3DTextLabel(str, COLOR_WHITE, 0, 0, -20, 20.0, playerid, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
    	Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, Pet[playerid], E_STREAMER_ATTACH_OFFSET_Z, 0);
    	Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, Pet[playerid], E_STREAMER_ATTACH_OFFSET_X, 0);

     

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