Jump to content

angel

Membru
  • Posts

    179
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by angel

  1. 1.Adaugati:

    new takejob;

    Acum mergeti la

    OnPlayerPickUpPickup

    Si adaugati:

    if(pickupid == takejob)

    {

    GameTextForPlayer(playerid,"~g~Welcome to the City Hall ~n~~y~Type /takejob if you want any job", 5000, 3);

    }

    Cautati linia:

    printf("Pickups Max = 200, Current Pickups = %d",pickups);

    Si adaugati asta putin mai jos:

    takejob = CreatePickup(1239, 23, 362.2952,173.4369,1008.3828); //takejob

    Acum adaugati comanda asta:  http://pastebin.com/FcYUhrty

    Finish!

  2. 1.Mergeti la comanda /clear

    sub

    ClearCrime(giveplayerid);

    Adaugati:

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

    {

        if(IsPlayerConnected(i))

    {

        if(PlayerInfo[pMember] == 1 || PlayerInfo[pLeader] == 1 || PlayerInfo[pMember] == 2 || PlayerInfo[pLeader] == 2 ||PlayerInfo[pMember] == 3 || PlayerInfo[pLeader] == 3)

        {

            if( (i == playerid) || (i == giveplayerid))

            {}

    else

    {

            format(string, sizeof(string), "* Officer %s has cleared %s 's Records and Wanted Points.", sendername, giveplayer);

    SendTeamMessage(2, COLOR_DBLUE, string);

    }

        }

    }

    }

    if(gTeam[giveplayerid]==4)

    {

        gTeam[giveplayerid] = 3;

        SetPlayerToTeamColor(giveplayerid);

        }

    }

    }

  3. a mai postat odata...ziice ca problema e cand da /park ...opreste serverul si cand il porneste iar nu sa salvat masina la locul respecitv.

    if (strcmp("/park", cmd, true, 10) == 0)

        {

            if (IsPlayerInVehicle(playerid,Carlist[playerid][Carid]))

            {

                GetVehiclePos(Carid, x, y, z);

                GetVehicleZAngle(carid, a);

                Carlist[Carid][cLocationx] = x;

                Carlist[Carid][cLocationy] = y;

                Carlist[Carid][cLocationz] = z;

                Carlist[Carid][cAngle] = a;

                SendClientMessage(playerid, COLOR_GREEN, "Saved car position!");

            }

            else { SendClientMessage(playerid, COLOR_GREY, "That is not your car!"); }

            return 1;

        }

    Incearca

  4.         else if(strcmp(x_nr,"buy",true) == 0)

            {

                if(IsAnOwnableCar(idcar))

                {

                    if(PlayerInfo[playerid][pLevel] < 2)

        {

                        SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");

                        return 1;

        }

      if(SBizzInfo[1][sbProducts] == 0)

    {

    GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);

    return 1;

    }

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

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

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

        else { SendClientMessage(playerid, COLOR_GREY, "  You already own 3 vehicles"); return 1; }

    if(CarInfo[idcar][cOwned]==1)

    {

        SendClientMessage(playerid, COLOR_GREY, "Someone already owns this car");

        return 1;

    }

    if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue])

    {

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

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

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

        else { return 1; }

    CarInfo[idcar][cOwned] = 1;

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

    strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999);

    SafeGivePlayerMoney(playerid,-CarInfo[idcar][cValue]);

    SBizzInfo[1][sbTill] += 5000;

    ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]);

    SBizzInfo[1][sbProducts]--;

    PlayerPlayMusic(playerid);

    GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);

    SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");

    SendClientMessage(playerid, COLOR_GRAD2, "Type /vehiclehelp to view the vehicle manual!");

    SendClientMessage(playerid, COLOR_YELLOW2, "You can start the engine up now !");

    gEngine[playerid] = 0;

    engineOn[GetPlayerVehicleID(playerid)] = false;

    DateProp(playerid);

    OnPropUpdate();

    OnPlayerUpdate(playerid);

    return 1;

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  You don't have enough cash with you ! ");

        return 1;

    }

                }

            }

            else

            {

                SendClientMessage(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]");

                SendClientMessage(playerid, COLOR_WHITE, "Available names: park, lock(1-3), sell, sellto, color");

                return 1;

            }

        }

        return 1;

    }

    pui asta sub lock3 incearca.

  5. Am vazut ca multi playeri cauta cum sa faca sa apara stele la fiecare wanted primit.

    Urmati acest tutorial>

    La inceput puneti "new stars;" intre celalalte

    Cauta "OnPlayerEnterVehicle" si pui sub asta  if(gTeam[playerid] >= 3)

                                                              {

            new wanted = GetPlayerWantedLevel(playerid);

            SetPlayerWantedLevel(playerid, wanted + 1);

    Apoi cauti:

    if(PlayerInfo[playerid][pJailed] == 1)

    {

                SetPlayerInterior(playerid, 6);

    SetPlayerPos(playerid,264.6288,77.5742,1001.0391);

    SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail.");

    return 1;

    }

    si pui asta deasupra la SetPlayerInterior(playerid, 6);

    SetPlayerWantedLevel(playerid, 0);

    Cauta asta:

    if(count == 1)

    {

    GivePlayerMoney(playerid, - price);

    PlayerInfo[playerid][pWantedDeaths] += 1;

    PlayerInfo[playerid][pJailed] = 1;

        PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);

        format(string, sizeof(string), "* You are in Jail for %d Seconds and lose $%d because of running away and getting shot by the Officer.", PlayerInfo[playerid][pJailTime], price);

        SendClientMessage(playerid, COLOR_LIGHTRED, string);

        WantedPoints[playerid] = 0;

    WantedLevel[playerid] = 0;

    }

    }

    }

    Sub asta  PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);

    pui asta

    SetPlayerWantedLevel(playerid, 0);

    Apoi cauti linia asta

    format(turnmes, sizeof(turnmes), "You've commited a Crime ( %s ). Reporter: %s.",reason,turner);

    Si pui asta sub SendClientMessage

            new wanted = GetPlayerWantedLevel(playerid);

            SetPlayerWantedLevel(playerid, wanted + 1);

    Apoi daca vrei sa faci cand copul da clear sa dispara stelele, Cauti comanda /clear mergi putin mai jos si gasesti Officer %s has cleared .... Sub SendClientMessage pui asta:

    SetPlayerWantedLevel(giveplayerid, 0);

    Cauta asta:

    SetPlayerInterior(suspect, 6);

    SetPlayerPos(suspect,264.6288,77.5742,1001.0391);

    PlayerInfo[suspect][pJailTime] = time * 60;

    if(bail == 1)

    {

    Deasupra lui SetPlayerInterior(suspect, 6);  pui asta:

    SetPlayerWantedLevel(giveplayerid, 0);

    Asta a fost tot!Sper sa va mearga! Daca aveti ceva nelamuriri postati aici si va voi raspunde!

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