Jump to content

SpriTe_

Membru
  • Posts

    189
  • Joined

  • Last visited

    Never

Posts posted by SpriTe_

  1. Ceva din asta:

    [pawn]

    POLICE

    CopTraf_Away

    CopTraf_Come

    CopTraf_Left

    CopTraf_Stop

    COP_getoutcar_LHS

    Cop_move_FWD

    crm_drgbst_01

    Door_Kick

    plc_drgbst_01          -----acestea douya cred mai mult

    plc_drgbst_02

    [/pawn]

  2. Incearca asa:

    [pawn]

    #include <a_samp>

    #define MAX_SPIKESTRIPS 20

    enum sInfo

    {

    sCreated,

        Float:sX,

        Float:sY,

        Float:sZ,

        sObject,

    };

    new SpikeInfo[MAX_SPIKESTRIPS][sInfo];

    public OnPlayerUpdate(playerid)

    {

    if(!IsPlayerConnected(playerid)) return 0;

        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)

        {

            for(new i = 0; i < sizeof(SpikeInfo); i++)

          {

              if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[sX], SpikeInfo[sY], SpikeInfo[sZ]))

                {

                  if(SpikeInfo[sCreated] == 1)

                  {

                      new panels, doors, lights1, tires;

                      new carid = GetPlayerVehicleID(playerid);

                GetVehicleDamageStatus(carid, panels, doors, lights1, tires);

                tires = encode_tires(1, 1, 1, 1);

                UpdateVehicleDamageStatus(carid, panels, doors, lights1, tires);

                      return 0;

                  }

              }

          }

      }

    return 1;

    }

    stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)

    {

        for(new i = 0; i < sizeof(SpikeInfo); i++)

      {

          if(SpikeInfo[sCreated] == 0)

          {

                SpikeInfo[sCreated]=1;

                SpikeInfo[sX]=x;

                SpikeInfo[sY]=y;

                SpikeInfo[sZ]=z-0.7;

                SpikeInfo[sObject] = CreateObject(2899, x, y, z-0.9, 0, 0, Angle-90);

            return 1;

          }

      }

      return 0;

    }

    stock DeleteAllStrip()

    {

        for(new i = 0; i < sizeof(SpikeInfo); i++)

      {

          if(SpikeInfo[sCreated] == 1)

          {

              SpikeInfo[sCreated]=0;

                SpikeInfo[sX]=0.0;

                SpikeInfo[sY]=0.0;

                SpikeInfo[sZ]=0.0;

                DestroyObject(SpikeInfo[sObject]);

          }

    }

        return 0;

    }

    stock DeleteClosestStrip(playerid)

    {

        for(new i = 0; i < sizeof(SpikeInfo); i++)

      {

          if(IsPlayerInRangeOfPoint(playerid, 2.0, SpikeInfo[sX], SpikeInfo[sY], SpikeInfo[sZ]))

            {

              if(SpikeInfo[sCreated] == 1)

                {

                    SpikeInfo[sCreated]=0;

                    SpikeInfo[sX]=0.0;

                    SpikeInfo[sY]=0.0;

                    SpikeInfo[sZ]=0.0;

                    DestroyObject(SpikeInfo[sObject]);

                    return 1;

              }

          }

      }

        return 0;

    }

    encode_tires(tires1, tires2, tires3, tires4) {

    return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);

    }

    [/pawn]

  3. Salutare SA-MP.ro , am o problema cu Cleo 4 , il instalez, pun un mod in el si nu mi se porneste SA-MP , adica apas CONNECT si degeaba , am incercat sa sterg CLEO.asi si se porneste , nu stiti care-i problema ? Am o comanda de trailer , si trebuie sa-mi instalez CamHun-ul urgent ..  :-(||>

  4. Salut! Am pus serverul pe host ,am facut tabele (baza de date),am schimbat in gamemode datele mysql.Am reinoit toate pluginurile si tot nu merge.Imi da eror 19.Si la gamemode apare Unknow

    Offf : http://www.sa-mp.ro/forum/index.php?topic=24930.0

  5. Incearca fara intrebarea aia, poti schimba textul adica nu "Salut, vreai sa asculti radi ? " , in " Acum vei asculta radio ! "

    [pawn]

    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{FF0000}Romania {FFFF00}Fast {0000FF}Difference", "Acum vei asculta radio !", "OK", "");

    [/pawn]

    Incearca asa dar nu sunt sigur :-?

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