[Pomoc] textdraw wanted. pomocccc plss

20. Feb. 2012. Zaključano
1,858
pregleda
23
postova
cfg:)
5
Underboss
20. Feb. 2012.
Skripta koju koristim: FG
Detaljan opis problema😮vako napravio sam jedan textdraw u editoru kada neko ima wl da se pojavi taj text i kada istekne da on nestane, e nez kako da ubacim to sve da bi radilo,tako...?eo textdraw
Dio skripte://

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;

Textdraw0 = TextDrawCreate(235.000000,316.000000,"textic");
Textdraw1 = TextDrawCreate(178.000000,337.000000,"text");
Textdraw2 = TextDrawCreate(299.000000,338.000000,"textina");
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw0,0x00000099);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawFont(Textdraw0,2);
TextDrawLetterSize(Textdraw0,0.599999,2.299999);
TextDrawFont(Textdraw1,2);
TextDrawLetterSize(Textdraw1,0.599999,1.900000);
TextDrawFont(Textdraw2,2);
TextDrawLetterSize(Textdraw2,0.799999,1.600000);
TextDrawColor(Textdraw0,0xff0000cc);
TextDrawColor(Textdraw1,0xff0000ff);
TextDrawColor(Textdraw2,0x0000ff66);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,1);
TextDrawSetShadow(Textdraw2,1);
Blaeks_Biofor
5
Forum Don
20. Feb. 2012.
Ovo stavis gore gde su svi new a ovo ispod OnGameModeInit
cfg:)
5
Underboss
20. Feb. 2012.
ali brate kako da napravim kada neko ima wl da se taj textdraw pojavi tO a kada mu nestane wl da text nestane sam. kontas.. 😁
Blaeks_Biofor
5
Forum Don
20. Feb. 2012.
Stavis varijablu za wanted ako igrac ima wanted da mu to pise a stavis kada nema wanted da mu se text Delete
cfg:)
5
Underboss
20. Feb. 2012.
kako brate  😢 de napisi  😄 😄
Blaeks_Biofor
5
Forum Don
20. Feb. 2012.
Ne znam sta koristis daj mi tvoju komandu /su(Za davanje wanteda) i napravicu ti
McZap
4
Made Man
20. Feb. 2012.
napravis provjeru u
OnPlayerUpdate
?

If(WantedPoints != 0 )
{
  If(WantedPoints == 1)
    {
      //textdraw za 1
    return 1;
    }

  If(WantedPoints == 2)
    {
      //textdraw za 2
    }

  If(WantedPoints == 3)
    {
      //textdraw za 3
    }

  If(WantedPoints == n)
    {
      //textdraw za n broj ... dodajes samo n zamjenjujes brojem
    }

}


pokusaj :/
cfg:)
5
Underboss
20. Feb. 2012.
a ovo brt imam vec jedan textdraw koji koristim jel moram promjenit ove?

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2; 
Blaeks_Biofor
5
Forum Don
20. Feb. 2012.
Pa logicno 😄
cfg:)
5
Underboss
20. Feb. 2012.
evo komanda xd ne kontam nikako ovo-.-
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 11 || OnDuty == 1 && PlayerInfo == 11) { }
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Niste na duznosti!");
    return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
if (gTeam != 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "  Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), "  %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "  Niste Policajac / FBI / Swat !");
}
}
return 1;
}
Blaeks_Biofor
5
Forum Don
20. Feb. 2012.
Koristi GetPlayerWanted => 0) da je wanted veci od nule i onda stavis taj textdraw
cfg:)
5
Underboss
20. Feb. 2012.
Blaeks wrote on February 20, 2012, 4:46 pm:
Koristi GetPlayerWanted => 0) da je wanted veci od nule i onda stavis taj textdraw


a gdje trebam to sve??da bi radilo na srv-.

edit:eo  ovo sam cjelo izmjenio stavio sam druge brojeve  sta trebam sve da uradim i gdje trebam da ubacim too.....😕'
new Text:Textdraw5; 
new Text:Textdraw6;
new Text:Textdraw7;

Textdraw5 = TextDrawCreate(235.000000,316.000000,"textic");
Textdraw6 = TextDrawCreate(178.000000,337.000000,"text");
Textdraw7 = TextDrawCreate(299.000000,338.000000,"textina");
TextDrawAlignment(Textdraw5,0);
TextDrawAlignment(Textdraw6,0);
TextDrawAlignment(Textdraw7,0);
TextDrawBackgroundColor(Textdraw5,0x00000099);
TextDrawBackgroundColor(Textdraw6,0x000000ff);
TextDrawBackgroundColor(Textdraw7,0x000000ff);
TextDrawFont(Textdraw5,2);
TextDrawLetterSize(Textdraw5,0.599999,2.299999);
TextDrawFont(Textdraw6,2);
TextDrawLetterSize(Textdraw5,0.599999,1.900000);
TextDrawFont(Textdraw6,2);
TextDrawLetterSize(Textdraw6,0.799999,1.600000);
TextDrawColor(Textdraw5,0xff0000cc);
TextDrawColor(Textdraw6,0xff0000ff);
TextDrawColor(Textdraw7,0x0000ff66);
TextDrawSetOutline(Textdraw5,1);
TextDrawSetOutline(Textdraw6,1);
TextDrawSetOutline(Textdraw7,1);
TextDrawSetProportional(Textdraw5,1);
TextDrawSetProportional(Textdraw6,1);
TextDrawSetProportional(Textdraw7,1);
TextDrawSetShadow(Textdraw5,1);
TextDrawSetShadow(Textdraw6,1);
TextDrawSetShadow(Textdraw7,1);
cfg:)
5
Underboss
20. Feb. 2012.
Sry za DP hoc eneko pomoc  😢 😢 😢 😢
Martinezz
2
Street Runner
20. Feb. 2012.
Vako!!

Skini ovo evo textdraw 1.0 http://forum.sa-mp.com/showthread.php?t=117851&highlight=textdraw+editor

textdraw editor 0.6 http://forum.sa-mp.com/showthread.php?t=12018&highlight=textdraw+editor

Napravis sta ti treba,onda odes u pawno file/find/textdraw i ispod ubacis

Ili file/find i nadjes PD,i napravis

If(WantedPoints != 0 )
{
  If(WantedPoints == 1)
    {
      //textdraw za 1
    return 1;
    }

  If(WantedPoints == 2)
    {
      //textdraw za 2
    }

  If(WantedPoints == 3)
    {
      //textdraw za 3 npr
    }

  If(WantedPoints == n)
    {
      //textdraw za 3npr
    }

}

Samo pri vrhu postavis new Textdraw!!

Vidim da si pocetnik,probaj vidit u mojem tutu za mod od 0!!
cfg:)
5
Underboss
20. Feb. 2012.
If(WantedPoints != 0 )
{
  If(WantedPoints == 1)  jeli ovo kad ima wl 1
    {
    Textdraw5 = TextDrawCreate(235.000000,316.000000,"textic"); sve gdje pise 5 da ubacim ovdje tako i dole
    TextDrawAlignment(Textdraw5,0);
    TextDrawBackgroundColor(Textdraw5,0x00000099);
    return 1;
    }
f(WantedPoints == 1)  jeli ovo kad ima wl 1
    {
    ovdje za 6 i dole za 7 jeli i gdje trebam ovo tacno?
    TextDrawAlignment(Textdraw5,0);
    TextDrawBackgroundColor(Textdraw5,0x00000099);
    return 1;
    }

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha