[POMOC] HITNO,Selectable TD

Započeo crnimajmun
7. Jan. 2016. Zaključano
190
pregleda
4
postova
crnimajmun
2
Street Runner
7. Jan. 2016.
Skripta koju koristim: Radim moju
Opis problema o kojem se radi: Nece da reaguje na clicked textdraw
Dio skripte:
OnPlayerClickPlayerTextdraw.

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == AutoSalonTD)
{
  new imevozila,cenavozila;
    ModelVozila += 1;
    if(ModelVozila > MAX_MODELA_VOZILA -1) { ModelVozila = 0; }
  DestroyVehicle(IzlozbenoVozilo);
  IzlozbenoVozilo = CreateVehicle(SalonAutomobila, VOZILOX,VOZILOY,VOZILOZ,VOZILOROT, 1, 1, 30000);
  format(imevozila,sizeof(imevozila),"%s",ImeVozila[GetVehicleModel(IzlozbenoVozilo) - 400]);
  PlayerTextDrawSetString(playerid,AutoSalonTD,imevozila);
  format(cenavozila,sizeof(cenavozila),"Cena: %d $",SalonAutomobila);
  PlayerTextDrawSetString(playerid,AutoSalonTD,cenavozila);
  return 1;
}
if(playertextid == AutoSalonTD)
{
    new imevozila,cenavozila;
    ModelVozila -= 1;
    if(ModelVozila < 0) { ModelVozila = MAX_MODELA_VOZILA -1; }
  DestroyVehicle(IzlozbenoVozilo);
  IzlozbenoVozilo = CreateVehicle(SalonAutomobila, VOZILOX,VOZILOY,VOZILOZ,VOZILOROT, 1, 1, 30000);
  format(imevozila,sizeof(imevozila),"%s",ImeVozila[GetVehicleModel(IzlozbenoVozilo) - 400]);
  PlayerTextDrawSetString(playerid,AutoSalonTD,imevozila);
  format(cenavozila,sizeof(cenavozila),"Cena: %d $",SalonAutomobila);
  PlayerTextDrawSetString(playerid,AutoSalonTD,cenavozila);
  return 1;
}
    if(playertextid == AutoSalonTD)
    {
        TogglePlayerControllable(playerid,1);
        SetCameraBehindPlayer(playerid);
        KupujeAuto = 0;
        KupovinaAuta = 0;
    PTDH(playerid,AutoSalonTD); PTDH(playerid,AutoSalonTD);
    PTDH(playerid,AutoSalonTD); PTDH(playerid,AutoSalonTD);
    PTDH(playerid,AutoSalonTD); PTDH(playerid,AutoSalonTD);
    PTDH(playerid,AutoSalonTD); PTDH(playerid,AutoSalonTD);
    PTDH(playerid,AutoSalonTD); PTDH(playerid,AutoSalonTD);
    PTDH(playerid,AutoSalonTD); PTDH(playerid,AutoSalonTD);
    CancelSelectTextDraw(playerid);
    return 1;
    }
    return 1;
}

Potrebni TDovi.

AutoSalonTD = CreatePlayerTextDraw(playerid, 450.015258, 109.958351, ">>");
PlayerTextDrawLetterSize(playerid, AutoSalonTD, 0.526180, 2.999999);
PlayerTextDrawTextSize(playerid, AutoSalonTD, 9.417251, 25.024993);
PlayerTextDrawAlignment(playerid, AutoSalonTD, 2);
PlayerTextDrawColor(playerid, AutoSalonTD, -5963521);
PlayerTextDrawSetShadow(playerid, AutoSalonTD, 0);
PlayerTextDrawSetOutline(playerid, AutoSalonTD, 1);
PlayerTextDrawBackgroundColor(playerid, AutoSalonTD, 255);
PlayerTextDrawFont(playerid, AutoSalonTD, 1);
PlayerTextDrawSetProportional(playerid, AutoSalonTD, 1);
PlayerTextDrawSetSelectable(playerid, AutoSalonTD, true);

AutoSalonTD = CreatePlayerTextDraw(playerid, 189.912155, 110.024986, "<<");
PlayerTextDrawLetterSize(playerid, AutoSalonTD, 0.526180, 2.999999);
PlayerTextDrawTextSize(playerid, AutoSalonTD, 10.729129, 25.374984);
PlayerTextDrawAlignment(playerid, AutoSalonTD, 2);
PlayerTextDrawColor(playerid, AutoSalonTD, -5963521);
PlayerTextDrawSetShadow(playerid, AutoSalonTD, 0);
PlayerTextDrawSetOutline(playerid, AutoSalonTD, 1);
PlayerTextDrawBackgroundColor(playerid, AutoSalonTD, 255);
PlayerTextDrawFont(playerid, AutoSalonTD, 1);
PlayerTextDrawSetProportional(playerid, AutoSalonTD, 1);
PlayerTextDrawSetSelectable(playerid, AutoSalonTD, true);

AutoSalonTD = CreatePlayerTextDraw(playerid, 453.997406, 151.083312, "IZLAZ");
PlayerTextDrawLetterSize(playerid, AutoSalonTD, 0.500553, 2.500085);
PlayerTextDrawTextSize(playerid, AutoSalonTD, 19.865549, 45.033290);
PlayerTextDrawAlignment(playerid, AutoSalonTD, 2);
PlayerTextDrawColor(playerid, AutoSalonTD, -5963521);
PlayerTextDrawSetShadow(playerid, AutoSalonTD, 0);
PlayerTextDrawSetOutline(playerid, AutoSalonTD, 1);
PlayerTextDrawBackgroundColor(playerid, AutoSalonTD, 255);
PlayerTextDrawFont(playerid, AutoSalonTD, 1);
PlayerTextDrawSetProportional(playerid, AutoSalonTD, 1);
PlayerTextDrawSetSelectable(playerid, AutoSalonTD, true);

Slika (neobavezno): /
POMOC!
Nikad pre nisam radio sa selectable textdrawovima,tako da,ne zamerite 🙂
Mislim da je sve sto se trazi postavljeno,ako nije stavicu 🙂
Hvala unapred!
Dobrica
4
Shot Caller
7. Jan. 2016.
Kod komande za show textdrawowe,stavi.

SelectTextDraw(playerid,0x33CCFFAA);
crnimajmun
2
Street Runner
7. Jan. 2016.
Ima vec...
Hover radi,znaci menja boju i to,ali ne moze klik.
crnimajmun
2
Street Runner
7. Jan. 2016.
Sredjeno,ako neko moze lock...

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha