Jump to content

Don.Capone

Membru
  • Posts

    582
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Don.Capone

  1. ti s-au incurcat id-urile la masini dute in gm la public IsAnOwnableCar(vehicleid) si vezi ca trebuie sa ai ceva de genul:

    Pawno Code: [select]

    public IsAnOwnableCar(vehicleid)

    {

    if(vehicleid >= 242 && vehicleid <= 403) { return 1; }

    return 0;

    }

    dar in loc de 242 si 403 tu ai alte numere. acele numere sunt 242=id primei masini personale si 403=numarul ultimei masini personale. tu intra pe server vezi sa nu fi in nicio factiune si scrie /gotocar sau /getcar 242 si vezi daca este masina personala incearca dupa aceea /getcar sau /gotocar 403 si vezi ce masina este 403 si incearca dupa aceea 402 sau 404. tu cand incerci 402 si vezi ca este ultima masina personala te duci in gm la IsAnOwnableCar(vehicleid) si in loc de 403 bagi 402 dar ai grija eu ti-am explicat dupa id-urile mele nu dupa ce ai tu. sper ca ai inteles.

  2. pune in loc de  MAX_PLAYERS; cate sloturi are gm-ul tau adik de ex are 50 in loc de MAX_PLAYERS; pui 50;

    nu merge asa. incerca asa:

    [pawn]public PayDay()

    {

    new string[128];

    new account,interest;

    new rent = 0;

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

    {

    if(IsPlayerConnected(i))

    {

        if(PlayerInfo[pLevel] > 0)

        {

        if(MoneyMessage==1)

    {

        SendClientMessage(i, COLOR_LIGHTRED, "Usted fallo en pagar su deuda, estara uno segundos en la Carcel.");

        GameTextForPlayer(i, "~r~Atrapado!", 2000, 1);

        SetPlayerInterior(i, 10);

        PlayerInfo[pInt] = 10;

      SetPlayerPos(i, 215.6566,109.6963,999.0156);

                PlayerInfo[pJailed] = 1;

                SafeResetPlayerWeapons(i);

                SafeResetPlayerMoney(i);

    WantedPoints = 0;

    PlayerInfo[pJailTime] = 240;

    format(string, sizeof(string), "Usted es encarcelado por %d segundos.  Fianza: Deuda con el Estado", PlayerInfo[pJailTime]);

    SendClientMessage(i, COLOR_WHITE, string);

    }

    new playername2[MAX_PLAYER_NAME];

    GetPlayerName(i, playername2, sizeof(playername2));

    account = PlayerInfo[pAccount];

    new key = PlayerInfo[pPhousekey];

    if(key != 255)

    {

    rent = HouseInfo[key][hRent];

    if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)

    {

    rent = 0;

    }

    else if(rent > GetPlayerMoney(i))

    {

    PlayerInfo[pPhousekey] = 255;

    SendClientMessage(i, COLOR_WHITE, "Usted ha sido denunciado.");

    rent = 0;

    }

    HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;

    }

    new tmpintrate;

    if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)

    {

        if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; }

    else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]

    }

    else

    {

        if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; }

    else { tmpintrate = 1; }

    }

    if(PlayerInfo[pPayDay] >= 5)

    {

        Tax += TaxValue;//Should work for every player online

        PlayerInfo[pAccount] -= TaxValue;

    new checks = PlayerInfo[pPayCheck] / 5;

    if(PlayerInfo[pDonateRank] > 0)

    {

        new bonus = PlayerInfo[pPayCheck] / 10;

        checks += bonus;

    }

        new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]);

        //ConsumingMoney = 1;

        //SafeGivePlayerMoney(i, checks);

        account += checks;

        if(PlayerInfo[pAccount] > 0)

        {

        PlayerInfo[pAccount] -= ebill;

        SBizzInfo[4][sbTill] += ebill;

    }

    else

    {

        ebill = 0;

    }

    interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);

    PlayerInfo[pExp]++;

    PlayerPlayMusic(i);

    PlayerInfo[pAccount] = account+interest;

    SendClientMessage(i, COLOR_GREEN, "|___ Interogare Sold ___|");

    format(string, sizeof(string), "  Plata: $%d  Taxa: -$%d", checks, TaxValue);

    SendClientMessage(i, COLOR_WHITE, string);

    if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255)

    {

        format(string, sizeof(string), "  Factura Electrica: -$%d", ebill);

    SendClientMessage(i, COLOR_GRAD1, string);

    }

    format(string, sizeof(string), "  Balance: $%d", account - checks);

    SendClientMessage(i, COLOR_WHITE, string);

    format(string, sizeof(string), "  Taxa de interese: 0.%d procente",tmpintrate);

    SendClientMessage(i, COLOR_GRAD2, string);

    format(string, sizeof(string), "  Interese Castigate $%d", interest);

    SendClientMessage(i, COLOR_GRAD3, string);

    SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");

    format(string, sizeof(string), "  Noul Balance: $%d", PlayerInfo[pAccount]);

    SendClientMessage(i, COLOR_GRAD5, string);

    format(string, sizeof(string), "  Chirie: -$%d", rent);

    SendClientMessage(i, COLOR_GRAD5, string);

    format(string, sizeof(string), "~g~Banca~n~~w~Ora de Plata");

    GameTextForPlayer(i, string, 5000, 1);

    rent = 0;

    PlayerInfo[pPayDay] = 0;

    PlayerInfo[pPayCheck] = 0;

    PlayerInfo[pConnectTime] += 1;

    timesrobbed=0;

    if(FermierVar == 0)

    {

    FermierPickup[0] = 0;

    }

    if(DrugFermierVar == 0)

    {

    DrugFermierPickup[0] = 0;

    }

    if(SmugglerWork == 0)

    {

    PayDaySecure = 0;

    }

    if(PlayerInfo[pDonateRank] > 0)

    {

        PlayerInfo[pPayDayHad] += 1;

        if(PlayerInfo[pPayDayHad] >= 5)

        {

            PlayerInfo[pExp]++;

            PlayerInfo[pPayDayHad] = 0;

        }

    }

    }

    else

    {

        SendClientMessage(i, COLOR_WHITE, "* Nu ai jucat destul pentru a obtine un PayDay.");

    }

    }

    }

    }

    SaveAccounts();

    Checkprop();

    return 1;

    }

    [/pawn] ti-am pus tot public PayDay()

  3. ti s-au incurcat id-urile la masini dute in gm la public IsAnOwnableCar(vehicleid) si vezi ca trebuie sa ai ceva de genul:[pawn]public IsAnOwnableCar(vehicleid)

    {

    if(vehicleid >= 242 && vehicleid <= 403) { return 1; }

    return 0;

    }

    [/pawn] dar in loc de 242 si 403 tu ai alte numere. acele numere sunt 242=id primei masini personale si 403=numarul ultimei masini personale. tu intra pe server vezi sa nu fi in nicio factiune si scrie /gotocar sau /getcar 242 si vezi daca este masina personala incearca dupa aceea /getcar sau /gotocar 403 si vezi ce masina este 403 si incearca dupa aceea 402 sau 404. tu cand incerci 402 si vezi ca este ultima masina personala te duci in gm la IsAnOwnableCar(vehicleid) si in loc de 403 bagi 402 dar ai grija eu ti-am explicat dupa id-urile mele nu dupa ce ai tu. sper ca ai inteles.

  4. vezi asa :

    [pawn]         if(strcmp(x_nr,"vinde",true) == 0)

            {

                if(IsAtDealership(playerid))

                {

                    if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3])

                    {

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

                        new ownvehkey;

                        if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; }

                        else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { ownvehkey = PlayerInfo[playerid][pPcarkey2]; }

                        else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { ownvehkey = PlayerInfo[playerid][pPcarkey3]; }

                        else { return 1; }

                        if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0)

                        {

                            new carsellprice = CarInfo[ownvehkey][cValue] / 4 * 3;

                            new Float:x,Float:y,Float:z;

                            new Float:a;

                            CarInfo[ownvehkey][cOwned] = 0;

                            strmid(CarInfo[ownvehkey][cOwner], "Dealership", 0, strlen("Dealership"), 999);

                            SafeGivePlayerMoney(playerid,carsellprice);

                            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

                            format(string, sizeof(string), "~w~Ai vandut masina pentru: ~n~~g~$%d", carsellprice);

                            GameTextForPlayer(playerid, string, 10000, 3);

                            GetVehiclePos(ownvehkey, x, y, z);

                            GetVehicleZAngle(ownvehkey, a);

                            CarInfo[ownvehkey][cLocationx] = x;

                            CarInfo[ownvehkey][cLocationy] = y;

                            CarInfo[ownvehkey][cLocationz] = z;

                            CarInfo[ownvehkey][cAngle] = a;

                            if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { PlayerInfo[playerid][pPcarkey] = 999; }

                            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { PlayerInfo[playerid][pPcarkey2] = 999; }

                            else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { PlayerInfo[playerid][pPcarkey3] = 999; }

                            RemovePlayerFromVehicle(playerid);

                            TogglePlayerControllable(playerid, 1);

                            if(PlayerInfo[playerid][pLocal] == ownvehkey)

                            {

                                SetPlayerInterior(playerid,0);

                                SetPlayerPos(playerid,CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]);

                                PlayerInfo[playerid][pInt] = 0;

                            }

                            OnPropUpdate();

                            OnPlayerUpdate(playerid);

                            DestroyVehicle(ownvehkey);

    CreateVehicle(CarInfo[ownvehkey][cModel],CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]+1.0,CarInfo[ownvehkey][cAngle],CarInfo[ownvehkey][cColorOne],CarInfo[ownvehkey][cColorTwo],60000);

                            return 1;

                        }

                    }

                    else

                    {

                        SendClientMessage(playerid, COLOR_GREY, "  Trebuie sa fii in masina ta ca sa o vinzi! ");

                        return 1;

                    }

                }

                else

                {

                    SendClientMessage(playerid, COLOR_GREY, "Nu esti la showroom");

                    return 1;

                }

            }[/pawn]

  5. sau asa [pawn] if(strcmp(cmd, "/healall", true) == 0)

    {

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

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pAdmin] >= 3)

            {

            format(string, sizeof(string), "Adminul %s a dat viata la toata lumea.", sendername);

        SendClientMessageToAll(0xFF7171FF, string);

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

    {

        if(IsPlayerConnected(i))

        {

        SetPlayerHealth(i, 100);

    }

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_RED, "Nu ai permisiunea de a folosi aceasta comanda!");

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_RED, "Trebuie sa fi logat pentru a folosi aceasta comanda!");

    }

    return 1;

    }

    [/pawn]

  6. mdea

    nush dak esti bou...da crek esti:D

    slabule

    copile ai maxim 11 ani si faci fite acuma si te dai in basini. hai mars ca nu am vazut de la tine nimic. fa tu ceva si comenteaza atuncea. nu ai tu dreptul sa il faci bou si slab. te-ai uitat la tine macar ? vai mama ta si cum a spus starxd mai si faci ca retardul 3xpost pentru ca  nu te duce capu sa citesti si tu regulamentul.
×
×
  • 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.