[Pomoc] textdraw wanted. pomocccc plss

Započeo Otisao s Foruma!, Februar 20, 2012, 16:20:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: FG
Detaljan opis problema:ovako 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);
Poslednja Izmena: Februar 20, 2012, 18:42:24 POSLE PODNE od ¢fg™'87
[[/center]
DgL <3
Otisao s Foruma zz


Ovo stavis gore gde su svi new a ovo ispod OnGameModeInit

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.. ;D
[[/center]
DgL <3
Otisao s Foruma zz


Stavis varijablu za wanted ako igrac ima wanted da mu to pise a stavis kada nema wanted da mu se text Delete

kako brate  :'( de napisi  :D :D
[[/center]
DgL <3
Otisao s Foruma zz


Ne znam sta koristis daj mi tvoju komandu /su(Za davanje wanteda) i napravicu ti

napravis provjeru u OnPlayerUpdate?

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

   If(WantedPoints[playerid] == 2)
    {
      //textdraw za 2
    }

   If(WantedPoints[playerid] == 3)
    {
      //textdraw za 3
    }

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

}


pokusaj :/
Poslednja Izmena: Februar 20, 2012, 17:12:52 POSLE PODNE od Marc McPawn

a ovo brt imam vec jedan textdraw koji koristim jel moram promjenit ove?

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2; 
[[/center]
DgL <3
Otisao s Foruma zz



evo komanda xd ne kontam nikako ovo-.-

if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(OnDuty[playerid] == 1 && PlayerInfo[playerid][pMember] == 2 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pLeader] == 2 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pMember] == 1 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pLeader] == 1 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pMember] == 11 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pLeader] == 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[playerid] == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
if (gTeam[giveplayerid] != 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
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[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 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;
}
[[/center]
DgL <3
Otisao s Foruma zz


Koristi GetPlayerWanted => 0) da je wanted veci od nule i onda stavis taj textdraw

Citat: Blaeks poslato Februar 20, 2012, 17:46:16 POSLE PODNE
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);
Poslednja Izmena: Februar 20, 2012, 18:39:50 POSLE PODNE od ¢fg™'87
[[/center]
DgL <3
Otisao s Foruma zz


Sry za DP hoc eneko pomoc  :'( :'( :'( :'(
[[/center]
DgL <3
Otisao s Foruma zz


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[playerid] != 0 )
{
   If(WantedPoints[playerid] == 1)
    {
      //textdraw za 1
     return 1;
    }

   If(WantedPoints[playerid] == 2)
    {
      //textdraw za 2
    }

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

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

}


Samo pri vrhu postavis new Textdraw!!

Vidim da si pocetnik,probaj vidit u mojem tutu za mod od 0!!

Mapping and Pawno Scripting Team!

If(WantedPoints[playerid] != 0 )
{
   If(WantedPoints[playerid] == 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[playerid] == 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;
    }
[[/center]
DgL <3
Otisao s Foruma zz