Jump to content

TheGodfather

Membru
  • Posts

    490
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by TheGodfather

  1. case DIALOG_UPSTAGE: {
                if(!response) return true;
                new idd = PersonalCar(playerid);
                if(CarInfo[idd][cStage] >= 3) return SCM(playerid, -1, "Acest vehicul este upgradat la stage maximum!");
                if(PlayerInfo[playerid][pPremiumPoints] < StagePrice[0][CarInfo[idd][cStage]+1]) return SCM(playerid, -1, "Nu ai destule Premium Points.");
                if(IsABike(CarInfo[idd][Spawned])) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti upgrada acest vehicul!");
                PlayerInfo[playerid][pPremiumPoints] -= StagePrice[0][CarInfo[idd][cStage]+1];
                Iter_Add(IsSpeed, playerid);
                Update(playerid, pPremiumPointsx);
                SCMEx(playerid, COLOR_WHITE, "{227FC3}Tunning System: {FFFFFF}You upgrade your vehicle successfully to stage %d for %d premium points.", CarInfo[idd][cStage]+1, StagePrice[0][CarInfo[idd][cStage]+1]);
                mysql_format(SQL, string, sizeof(string), "UPDATE `cars` SET `Stage`='%d' WHERE `ID`='%d'", CarInfo[idd][cStage]+1, CarInfo[idd][cID]);
                mysql_tquery(SQL, string, "", "");
                CarInfo[idd][cStage] ++;
                   format(string, sizeof(string), "Your vehicle is~y~ %s~n~~w~~h~Max. speed:~y~ %d km/h~n~~w~~h~Current stage:~y~ %d/3~w~~h~~n~boost: ~y~+%d km/h~w~~h~ / ~b~ %d km/h"
                ,aVehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400], CarInfo[idd][cMaxSpeed], CarInfo[idd][cStage],StageSpeed[0][CarInfo[idd][cStage]], CarInfo[idd][cMaxSpeed]+StageSpeed[0][CarInfo[idd][cStage]]);
                PlayerTextDrawSetString(playerid, StagePTD, string);
            }

     

    YCMD:givevehicle(playerid, params[], help) {
        if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
        new id, model, string[180],temporar;
        if(sscanf(params, "uii", id, model, temporar)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/givevehicle <playerid/name> <model> <temporar>");
        if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
        else if(GetSlots(id) <= Iter_Count(MyVehicle[id])) return SCM(playerid, -1, "Acel player are numarul maxim de masini personale! Isi poate cumpara un slot din /shop.");
        
        format(string, sizeof(string), "* Ai primit un %s de la administratorul %s.", aVehicleNames[model-400], GetName(playerid));
        SCM(id, COLOR_YELLOW, string);
        format(string, sizeof(string), "* I-ai dat lui %s un %s.", GetName(id), aVehicleNames[model-400]);
        SCM(playerid, COLOR_YELLOW, string);                
        GiveVehicle(id, model, 0, 0, 0, 0, temporar);    
        return true;

  2. Salut, am gasit un bug la acest gamemode si nu stiu cum sa il rezolv. La unele masini, nu functioneaza sistemul de stage, chiar daca este upgradat la maxim/orice nivel de stage. De exemplu, daca am stage 3 pe un sultan, acesta tot cu 169 km o sa mearga, chiar daca ar trebui sa prinda 200+

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