[Pomoc] TextDraw

Započeo CColucci..
13. Jan. 2015. Zaključano
344
pregleda
6
postova
Jeffry_Vasquez
3
Hustler
13. Jan. 2015.
Skripta koju koristim: Edit
Detaljan opis problema: radim pomoc sistem u TDovima i kad ukucam komandu sve mi se pojavi ai nema cursora da mogu odabrati rubriku koju zelim
Dio skripte:
Eo Komanda
CMD:vodic(playerid, params[])
{
if(IgracLogovan == 1)
{
ShowVodic(playerid);

}
return 1;
}

Evo public gdje prikazuje rubrikuStaff ako je igracu u Staffu
public ShowVodic(playerid)
{
if(PlayerInfo == 0 && PlayerInfo == 0)
{
TextDrawHideForPlayer(playerid, VodicBox0);
TextDrawHideForPlayer(playerid, VodicBox1);
TextDrawHideForPlayer(playerid, VodicBox2);
TextDrawHideForPlayer(playerid, VodicBL);
TextDrawHideForPlayer(playerid, VodicHelp);
TextDrawHideForPlayer(playerid, VodiccHelp);
TextDrawHideForPlayer(playerid, VodicZahtjev);
TextDrawHideForPlayer(playerid, VodicOpste);
TextDrawHideForPlayer(playerid, VodicPosao);
TextDrawHideForPlayer(playerid, VodicOrg);
TextDrawHideForPlayer(playerid, VodicIzlaz);
TextDrawHideForPlayer(playerid, VodicBox3);
TextDrawHideForPlayer(playerid, VodicBox4);
TextDrawHideForPlayer(playerid, BCommunity);
TextDrawHideForPlayer(playerid, VodicStaff);
TextDrawHideForPlayer(playerid, VodicText);
TextDrawSetSelectable(VodicHelp, 1);
TextDrawSetSelectable(VodicOpste, 1);
TextDrawSetSelectable(VodicPosao, 1);
TextDrawSetSelectable(VodicOrg, 1);
/*TextDrawSetSelectable(VodicStaff, 1);*/
TextDrawSetSelectable(VodicIzlaz, 1);
TextDrawShowForPlayer(playerid, VodicBox0);
TextDrawShowForPlayer(playerid, VodicBox1);
TextDrawShowForPlayer(playerid, VodicBox2);
TextDrawShowForPlayer(playerid, VodicBL);
TextDrawShowForPlayer(playerid, VodicHelp);
TextDrawShowForPlayer(playerid, VodiccHelp);
TextDrawShowForPlayer(playerid, VodicZahtjev);
TextDrawShowForPlayer(playerid, VodicOpste);
TextDrawShowForPlayer(playerid, VodicPosao);
TextDrawShowForPlayer(playerid, VodicOrg);
TextDrawShowForPlayer(playerid, VodicIzlaz);
TextDrawShowForPlayer(playerid, VodicBox3);
TextDrawShowForPlayer(playerid, VodicBox4);
TextDrawShowForPlayer(playerid, BCommunity);
TextDrawShowForPlayer(playerid, VodicText);

new rubrika;
format(rubrika,sizeof(rubrika),"~r~Odaberite rubriku za koju zelite vidjeti komande.");
TextDrawSetString(VodicText, rubrika);

}
else if(PlayerInfo >= 1)
{
TextDrawHideForPlayer(playerid, VodicBox0);
TextDrawHideForPlayer(playerid, VodicBox1);
TextDrawHideForPlayer(playerid, VodicBox2);
TextDrawHideForPlayer(playerid, VodicBL);
TextDrawHideForPlayer(playerid, VodicHelp);
TextDrawHideForPlayer(playerid, VodiccHelp);
TextDrawHideForPlayer(playerid, VodicZahtjev);
TextDrawHideForPlayer(playerid, VodicOpste);
TextDrawHideForPlayer(playerid, VodicPosao);
TextDrawHideForPlayer(playerid, VodicOrg);
TextDrawHideForPlayer(playerid, VodicIzlaz);
TextDrawHideForPlayer(playerid, VodicBox3);
TextDrawHideForPlayer(playerid, VodicBox4);
TextDrawHideForPlayer(playerid, BCommunity);
TextDrawHideForPlayer(playerid, VodicStaff);
TextDrawHideForPlayer(playerid, VodicText);
TextDrawSetSelectable(VodicHelp, 1);
TextDrawSetSelectable(VodicOpste, 1);
TextDrawSetSelectable(VodicPosao, 1);
TextDrawSetSelectable(VodicOrg, 1);
/*TextDrawSetSelectable(VodicStaff, 1);*/
TextDrawSetSelectable(VodicIzlaz, 1)
TextDrawShowForPlayer(playerid, VodicBox0);
TextDrawShowForPlayer(playerid, VodicBox1);
TextDrawShowForPlayer(playerid, VodicBox2);
TextDrawShowForPlayer(playerid, VodicBL);
TextDrawShowForPlayer(playerid, VodicHelp);
TextDrawShowForPlayer(playerid, VodiccHelp);
TextDrawShowForPlayer(playerid, VodicZahtjev);
TextDrawShowForPlayer(playerid, VodicOpste);
TextDrawShowForPlayer(playerid, VodicPosao);
TextDrawShowForPlayer(playerid, VodicOrg);
TextDrawShowForPlayer(playerid, VodicIzlaz);
TextDrawShowForPlayer(playerid, VodicBox3);
TextDrawShowForPlayer(playerid, VodicBox4);
TextDrawShowForPlayer(playerid, BCommunity);
TextDrawShowForPlayer(playerid, VodicStaff);
TextDrawShowForPlayer(playerid, VodicText);

new rubrikav;
format(rubrikav,sizeof(rubrikav),"~r~Odaberite rubriku za koju zelite vidjeti komande.");
TextDrawSetString(VodicText, rubrikav);

}
else if(PlayerInfo >= 1)
{
TextDrawHideForPlayer(playerid, VodicBox0);
TextDrawHideForPlayer(playerid, VodicBox1);
TextDrawHideForPlayer(playerid, VodicBox2);
TextDrawHideForPlayer(playerid, VodicBL);
TextDrawHideForPlayer(playerid, VodicHelp);
TextDrawHideForPlayer(playerid, VodiccHelp);
TextDrawHideForPlayer(playerid, VodicZahtjev);
TextDrawHideForPlayer(playerid, VodicOpste);
TextDrawHideForPlayer(playerid, VodicPosao);
TextDrawHideForPlayer(playerid, VodicOrg);
TextDrawHideForPlayer(playerid, VodicIzlaz);
TextDrawHideForPlayer(playerid, VodicBox3);
TextDrawHideForPlayer(playerid, VodicBox4);
TextDrawHideForPlayer(playerid, BCommunity);
TextDrawHideForPlayer(playerid, VodicStaff);
TextDrawHideForPlayer(playerid, VodicText);
TextDrawSetSelectable(VodicHelp, 1);
TextDrawSetSelectable(VodicOpste, 1);
TextDrawSetSelectable(VodicPosao, 1);
TextDrawSetSelectable(VodicOrg, 1);
/*TextDrawSetSelectable(VodicStaff, 1);*/
TextDrawSetSelectable(VodicIzlaz, 1);
TextDrawShowForPlayer(playerid, VodicBox0);
TextDrawShowForPlayer(playerid, VodicBox1);
TextDrawShowForPlayer(playerid, VodicBox2);
TextDrawShowForPlayer(playerid, VodicBL);
TextDrawShowForPlayer(playerid, VodicHelp);
TextDrawShowForPlayer(playerid, VodiccHelp);
TextDrawShowForPlayer(playerid, VodicZahtjev);
TextDrawShowForPlayer(playerid, VodicHelp);
TextDrawShowForPlayer(playerid, VodicOpste);
TextDrawShowForPlayer(playerid, VodicPosao);
TextDrawShowForPlayer(playerid, VodicOrg);
TextDrawShowForPlayer(playerid, VodicIzlaz);
TextDrawShowForPlayer(playerid, VodicBox3);
TextDrawShowForPlayer(playerid, VodicBox4);
TextDrawShowForPlayer(playerid, BCommunity);
TextDrawShowForPlayer(playerid, VodicStaff);
TextDrawShowForPlayer(playerid, VodicText);

new rubrikaa;
format(rubrikaa,sizeof(rubrikaa),"~r~Odaberite rubriku za koju zelite vidjeti komande.");
TextDrawSetString(VodicText, rubrikaa);
/*SelectTextDraw(playerid, 0xFF0000FF);*/
}
return 1;
}
I evo u OnPlayerClickTextDraw

else if(clickedid == VodicOpste)
    {
        TextDrawHideForPlayer(playerid, VodicBox0);
TextDrawHideForPlayer(playerid, VodicBox1);
TextDrawHideForPlayer(playerid, VodicBox2);
TextDrawHideForPlayer(playerid, VodicBL);
TextDrawHideForPlayer(playerid, VodicHelp);
TextDrawHideForPlayer(playerid, VodiccHelp);
TextDrawHideForPlayer(playerid, VodicZahtjev);
TextDrawHideForPlayer(playerid, VodicOpste);
TextDrawHideForPlayer(playerid, VodicPosao);
TextDrawHideForPlayer(playerid, VodicOrg);
TextDrawHideForPlayer(playerid, VodicIzlaz);
TextDrawHideForPlayer(playerid, VodicBox3);
TextDrawHideForPlayer(playerid, VodicBox4);
TextDrawHideForPlayer(playerid, BCommunity);
TextDrawHideForPlayer(playerid, VodicText);
        TextDrawSetSelectable(VodicHelp, 1);
TextDrawSetSelectable(VodicOpste, 1);
TextDrawSetSelectable(VodicPosao, 1);
TextDrawSetSelectable(VodicOrg, 1);
/*TextDrawSetSelectable(VodicStaff, 1);*/
TextDrawSetSelectable(VodicIzlaz, 1);
    TextDrawShowForPlayer(playerid, VodicBox0);
TextDrawShowForPlayer(playerid, VodicBox1);
TextDrawShowForPlayer(playerid, VodicBox2);
TextDrawShowForPlayer(playerid, VodicBL);
TextDrawShowForPlayer(playerid, VodicHelp);
TextDrawShowForPlayer(playerid, VodiccHelp);
TextDrawShowForPlayer(playerid, VodicZahtjev);
TextDrawShowForPlayer(playerid, VodicOpste);
TextDrawShowForPlayer(playerid, VodicPosao);
TextDrawShowForPlayer(playerid, VodicOrg);
TextDrawShowForPlayer(playerid, VodicIzlaz);
TextDrawShowForPlayer(playerid, VodicBox3);
TextDrawShowForPlayer(playerid, VodicBox4);
TextDrawShowForPlayer(playerid, BCommunity);
TextDrawShowForPlayer(playerid, VodicText);
  /*SelectTextDraw(playerid, 0xFF0000FF);*/
new stringa;
format(stringa,sizeof(stringa),"~w~Racun: ~y~/stats /kracun~n~~w~Chat: ~y~/b /s /c /w~n~~w~Mobitel: ~h~~y~/call /sms /ad~n~~w~Banka: ~y~/digni /polozi /transfer /stanjeracuna~n~~w~ATM Aparati: ~y~/bankomat~n~~w~Ostalo: ~y~/baci /podigni /ulaz /izlaz /rever~n~~w~Ostalo: ~y~/prihvati /koristi /contract /time");
    TextDrawSetString(VodicText,stringa);
}
else if(clickedid == VodicPosao)
{
            TextDrawHideForPlayer(playerid, VodicBox0);
TextDrawHideForPlayer(playerid, VodicBox1);
TextDrawHideForPlayer(playerid, VodicBox2);
TextDrawHideForPlayer(playerid, VodicBL);
TextDrawHideForPlayer(playerid, VodicHelp);
TextDrawHideForPlayer(playerid, VodiccHelp);
TextDrawHideForPlayer(playerid, VodicZahtjev);
TextDrawHideForPlayer(playerid, VodicOpste);
TextDrawHideForPlayer(playerid, VodicPosao);
TextDrawHideForPlayer(playerid, VodicOrg);
TextDrawHideForPlayer(playerid, VodicIzlaz);
TextDrawHideForPlayer(playerid, VodicBox3);
TextDrawHideForPlayer(playerid, VodicBox4);
TextDrawHideForPlayer(playerid, BCommunity);
TextDrawHideForPlayer(playerid, VodicText);
TextDrawSetSelectable(VodicHelp, 1);
TextDrawSetSelectable(VodicOpste, 1);
TextDrawSetSelectable(VodicPosao, 1);
TextDrawSetSelectable(VodicOrg, 1);
/*TextDrawSetSelectable(VodicStaff, 1);*/
TextDrawSetSelectable(VodicIzlaz, 1);
TextDrawShowForPlayer(playerid, VodicBox0);
TextDrawShowForPlayer(playerid, VodicBox1);
TextDrawShowForPlayer(playerid, VodicBox2);
TextDrawShowForPlayer(playerid, VodicBL);
TextDrawShowForPlayer(playerid, VodicHelp);
TextDrawShowForPlayer(playerid, VodiccHelp);
TextDrawShowForPlayer(playerid, VodicZahtjev);
TextDrawShowForPlayer(playerid, VodicOpste);
TextDrawShowForPlayer(playerid, VodicPosao);
TextDrawShowForPlayer(playerid, VodicOrg);
TextDrawShowForPlayer(playerid, VodicIzlaz);
TextDrawShowForPlayer(playerid, VodicBox3);
TextDrawShowForPlayer(playerid, VodicBox4);
TextDrawShowForPlayer(playerid, BCommunity);
TextDrawShowForPlayer(playerid, VodicText);

/*SelectTextDraw(playerid, 0xFF0000FF);*/
new sarma;
if(PlayerInfo == 0) {
format(sarma,sizeof(sarma),"~r~Trenutno si nezaposlen");}
else if(PlayerInfo == 1) {
format(sarma,sizeof(sarma),"Diler Droge: ~y~/prodajdrogu /sadi /beri /kupisjeme");}
else if(PlayerInfo == 2) {
format(sarma,sizeof(sarma),"Dzeparos: ~y~/kradi");}
else if(PlayerInfo == 3) {
format(sarma,sizeof(sarma),"Automehanicar: ~y~/popravka /duznost /oprema");}
else if(PlayerInfo == 4) {
format(sarma,sizeof(sarma),"Zastitar: ~y~/zastita /oprema");}
else if(PlayerInfo == 5) {
format(sarma,sizeof(sarma),"DeeJay: ~y~/mixaj /oprema");}
else if(PlayerInfo == 6) {
format(sarma,sizeof(sarma),"Farmer: ~y~/frezaj /zanji /psenica /oprema");}
else if(PlayerInfo == 7) {
format(sarma,sizeof(sarma),"Diler Vozila: ~y~/prodajauto");}
else if(PlayerInfo == 8) {
format(sarma,sizeof(sarma),"Vozac Autobusa: ~y~/vcijena /oprema");}
else if(PlayerInfo == 9) {
format(sarma,sizeof(sarma),"Dostavljac: ~y~/kupiprodukte /prodajprodukte /oprema");}
else if(PlayerInfo == 10) {
format(sarma,sizeof(sarma),"Kosac Trave: ~y~/kosenje /zavrsiposao /oprema");}
else if(PlayerInfo == 11) {
format(sarma,sizeof(sarma),"Komunalno Poduzece: ~y~/kupismece /ponisti /oprema");}
else if(PlayerInfo == 12) {
format(sarma,sizeof(sarma),"Postar: ~y~/posta /oprema");}
else if(PlayerInfo == 14) {
format(sarma,sizeof(sarma),"Elektricar: ~y~/kvar /oprema");}
else if(PlayerInfo == 15) {
format(sarma,sizeof(sarma),"Grobar: ~y~/grobar /oprema");}
else if(PlayerInfo == 16) {
format(sarma,sizeof(sarma),"Pilot: ~y~/let /oprema");}
TextDrawSetString(VodicText, sarma);
}
  else if(clickedid == VodicOrg)
  {
            TextDrawHideForPlayer(playerid, VodicBox0);
TextDrawHideForPlayer(playerid, VodicBox1);
TextDrawHideForPlayer(playerid, VodicBox2);
TextDrawHideForPlayer(playerid, VodicBL);
TextDrawHideForPlayer(playerid, VodicHelp);
TextDrawHideForPlayer(playerid, VodiccHelp);
TextDrawHideForPlayer(playerid, VodicZahtjev);
TextDrawHideForPlayer(playerid, VodicOpste);
TextDrawHideForPlayer(playerid, VodicPosao);
TextDrawHideForPlayer(playerid, VodicOrg);
TextDrawHideForPlayer(playerid, VodicIzlaz);
TextDrawHideForPlayer(playerid, VodicBox3);
TextDrawHideForPlayer(playerid, VodicBox4);
TextDrawHideForPlayer(playerid, BCommunity);
TextDrawHideForPlayer(playerid, VodicText);
TextDrawSetSelectable(VodicHelp, 1);
TextDrawSetSelectable(VodicOpste, 1);
TextDrawSetSelectable(VodicPosao, 1);
TextDrawSetSelectable(VodicOrg, 1);
/*TextDrawSetSelectable(VodicStaff, 1);*/
TextDrawSetSelectable(VodicIzlaz, 1);
TextDrawShowForPlayer(playerid, VodicBox0);
TextDrawShowForPlayer(playerid, VodicBox1);
TextDrawShowForPlayer(playerid, VodicBox2);
TextDrawShowForPlayer(playerid, VodicBL);
TextDrawShowForPlayer(playerid, VodicHelp);
TextDrawShowForPlayer(playerid, VodiccHelp);
TextDrawShowForPlayer(playerid, VodicZahtjev);
TextDrawShowForPlayer(playerid, VodicOpste);
TextDrawShowForPlayer(playerid, VodicPosao);
TextDrawShowForPlayer(playerid, VodicOrg);
TextDrawShowForPlayer(playerid, VodicIzlaz);
TextDrawShowForPlayer(playerid, VodicBox3);
TextDrawShowForPlayer(playerid, VodicBox4);
TextDrawShowForPlayer(playerid, BCommunity);
TextDrawShowForPlayer(playerid, VodicText);


new sveovo;
if(PlayerInfo > 0 || PlayerInfo > 0)

{
if(PlayerInfo == 1 || PlayerInfo == 1){
format(sveovo, sizeof(sveovo),"Chat: ~y~/f~n~~w~Ostalo:~y~ /ppomoc");}
if(PlayerInfo == 4 || PlayerInfo == 4){
format(sveovo, sizeof(sveovo),"Chat: ~y~/f /d /r~n~~w~Ostalo:~y~ /clanovi /podlider /heal");}
else if(PlayerInfo == 10 || PlayerInfo == 10){
format(sveovo, sizeof(sveovo),"Chat: ~y~/f~n~~w~Ostalo:~y~ /clanovi /vcijena /podlider /skin");}
else if(PlayerInfo == 9 || PlayerInfo == 9){
format(sveovo, sizeof(sveovo),"Chat: ~y~/f~n~~w~Ostalo:~y~ /clanovi /vijesti /emisija /intervju /podlider /skin");}
else if(IgracClanBande(playerid) || IgracLiderBande(playerid)) { format(sveovo, sizeof(sveovo),"Chat: ~y~/f~n~~w~Savez:~y~ /sc Samo za lidere - /psavez /savez~n~~w~Ostalo:~y~ /clanovi /svezi /podlider /skin /uzmioru"); }
TextDrawSetString(VodicText, sveovo);
}
else if(clickedid == VodicHelp)
    {
            TextDrawHideForPlayer(playerid, VodicBox0);
TextDrawHideForPlayer(playerid, VodicBox1);
TextDrawHideForPlayer(playerid, VodicBox2);
TextDrawHideForPlayer(playerid, VodicBL);
TextDrawHideForPlayer(playerid, VodicHelp);
TextDrawHideForPlayer(playerid, VodiccHelp);
TextDrawHideForPlayer(playerid, VodicZahtjev);
TextDrawHideForPlayer(playerid, VodicOpste);
TextDrawHideForPlayer(playerid, VodicPosao);
TextDrawHideForPlayer(playerid, VodicOrg);
TextDrawHideForPlayer(playerid, VodicIzlaz);
TextDrawHideForPlayer(playerid, VodicBox3);
TextDrawHideForPlayer(playerid, VodicBox4);
TextDrawHideForPlayer(playerid, BCommunity);
TextDrawHideForPlayer(playerid, VodicText);
TextDrawSetSelectable(VodicHelp, 1);
TextDrawSetSelectable(VodicOpste, 1);
TextDrawSetSelectable(VodicPosao, 1);
TextDrawSetSelectable(VodicOrg, 1);
/*TextDrawSetSelectable(VodicStaff, 1);*/
TextDrawSetSelectable(VodicIzlaz, 1);
   
if(VodicPomoc > 0)
{
SCMF(playerid,SIVA,"Morate sacekati %d sekundi.",VodicPomoc);
return 1;
}
  new string;
  new sendername;
format(string,sizeof(string),"Pomoc | {FFFF00}Igracu {EA0C0C}%s(%d) {FFFF00}je potrebna pomoc, odgovorite na njegov zahtjev!",sendername,playerid);
SCM(playerid,BELA,"{FFFF00}Vas zahtjev je poslan, ubrzo ce Vam se obratiti neko od {FFFFFF}Administracije!");
  ABroadCast(BELA,string,1);
VodicPomoc = 120;
}
else if(clickedid == VodicIzlaz)
  {
            TextDrawHideForPlayer(playerid, VodicBox0);
TextDrawHideForPlayer(playerid, VodicBox1);
TextDrawHideForPlayer(playerid, VodicBox2);
TextDrawHideForPlayer(playerid, VodicBL);
TextDrawHideForPlayer(playerid, VodicHelp);
TextDrawHideForPlayer(playerid, VodiccHelp);
TextDrawHideForPlayer(playerid, VodicZahtjev);
TextDrawHideForPlayer(playerid, VodicOpste);
TextDrawHideForPlayer(playerid, VodicPosao);
TextDrawHideForPlayer(playerid, VodicOrg);
TextDrawHideForPlayer(playerid, VodicIzlaz);
TextDrawHideForPlayer(playerid, VodicBox3);
TextDrawHideForPlayer(playerid, VodicBox4);
TextDrawHideForPlayer(playerid, BCommunity);
TextDrawHideForPlayer(playerid, VodicText);
CancelSelectTextDraw(playerid);

  }
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Rudimental
5
OG Legend
14. Jan. 2015.
Pogledaj ovo pa pokusaj pronaci gresku
http://wiki.sa-mp.com/wiki/OnPlayerClickPlayerTextDraw
STREETBOY
5
Kingpin
14. Jan. 2015.
Zasto si funkciju SelectTextDraw stavio u komentaru(obrisao)?
/*SelectTextDraw(playerid, 0xFF0000FF);*/


Stavi funkciju da radi,i radice ti odabir..
Jeffry_Vasquez
3
Hustler
14. Jan. 2015.
Hvala probacu.Ali kada sam radio stats sistem nisam koristio selecttextdraw i sve je radilo
Leon27
5
Crime Lord
14. Jan. 2015.
Pa moras to koristiti jer kako ces drugacije selektovati TD bez te funkcije  😄
Jeffry_Vasquez
3
Hustler
15. Jan. 2015.
Hvala,napravio sam sve osim rubrike posalji i izlaz kad stisnem na izlaz nece da ukloni TDove a na posalji nece da posalje staffu poruku 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha