Guest PlayON Posted November 29, 2010 Report Share Posted November 29, 2010 0.3c Culori intr-un mesaj.The way it's meant.InformatiiAm sa va arat cum se foloseste noua functie sau sa o numic, noua minune in SA-MP, unde puteti avea un text de genu: In primul rand, aceste culori nu sunt in format HEX! Cum avem noi la SA-MP deobicei la SendClientMessage, EX: 0xFFFFFFFF.Nu! Acuma este RGB si se scrie FF0202 <- Este codul RGB exact pentru culoarea RosieSa incepem...In primul rand, v-am facut o mica lista cu culorile RGB. Vetiv edea mai jos cum se folosesc acestea.#define TAG[SRC] "{FFBF00}" #define COL_EASY "{FFF1AF}" #define COL_WHITE "{FFFFFF}" #define COL_BLACK "{0E0101}" #define COL_GREY "{C3C3C3}" #define COL_GREEN "{6EF83C}" #define COL_RED "{F81414}" #define COL_YELLOW "{F3FF02}" #define COL_ORANGE "{FFAF00}" #define COL_LIME "{B7FF00}" #define COL_CYAN "{00FFEE}" #define COL_LIGHTBLUE "{00C0FF}" #define COL_BLUE "{0049FF}" #define COL_MAGENTA "{F300FF}" #define COL_VIOLET "{B700FF}" #define COL_PINK "{FF00EA}" #define COL_MARONE "{A90202}" #define COL_CMD "{B8FF02}" #define COL_PARAM "{3FCD02}" #define COL_SERVER "{AFE7FF}" Veti vedea mai tarziu de ce le-am pus in " ". Acuma, ca sa nu ne complicam cand scriem un mesaj, de exemplu in loc sa scriem. Desi nu va arata asa de impecabil atunci cand scrieti mult si multe culori.Va arata oribil. SendClientMessage(playerid,0xFFFFFFFF, "{RRGGBB} UNU {RRGGBB} DOI {RRGGBB} TREI {RRGGBB} PATRU"); Formatu prin care se face un text colorat este de a pune culoarea intre { } intr-un mesaj. Tot textu care vine da dupa o culoare {RRGGBB} se face de aceasi culoare. Eu, inloc sa fac asa, fac altfel, folosing o metoda, care mi se pare mai buna si mai sa zicem sofisticata, eu unu inteleg mai bine asa. Inloc sa folosim {RRGGBB} vom folosi culorile din lista pe care am facut mai sus. Si ams a fa si explic de ce am pus intre " ". SendClientMessage ( playerid,0xFFFFFFFF, ""#COL_RED"ROSU"#COL_YELLOW" GALBEN "#COL_BLUE" ALBASTRU "#COL_MAGENTA" PURPURIU "#COL_VIOLET" VIOLET "#COL_WHITE" ETC!!!!");Ca sa facem un text colorat prin metoda care am gasit-o eu, adaugam "#COL_RED" in fata textului.Si prin asta putem modifica oricand vrem culoarea rosie.DownloadCOLOR PICKER DOWNLOADDaca nu ati inteles nimic, va rog sa postati aici!Orice nelamurire orice! Quote Link to comment Share on other sites More sharing options...
Roach Posted November 29, 2010 Report Share Posted November 29, 2010 Bun tutorial Zh3r0, GJ 5/5! Quote Underground-GFX Link to comment Share on other sites More sharing options...
TeoThePlayer Posted November 29, 2010 Report Share Posted November 29, 2010 PRIMUL TUTORIAL DE 0.3c 8) !!! 5/5 !!! Quote Link to comment Share on other sites More sharing options...
zroT Posted November 29, 2010 Report Share Posted November 29, 2010 Super tutorialul, 0.3C un nou inceput ! Quote Link to comment Share on other sites More sharing options...
Guest PlayON Posted November 30, 2010 Report Share Posted November 30, 2010 Am postat cum arata intr-un dialog.Admirati ce frumos arata! Quote Link to comment Share on other sites More sharing options...
Speederx Posted November 30, 2010 Report Share Posted November 30, 2010 ce tare gj :D Quote Link to comment Share on other sites More sharing options...
Guest [FaNatic]JoK3r Posted November 30, 2010 Report Share Posted November 30, 2010 gg 5/5 Quote Link to comment Share on other sites More sharing options...
IstuntmanI Posted November 30, 2010 Report Share Posted November 30, 2010 Prea simplu xD Quote Link to comment Share on other sites More sharing options...
Guest PlayON Posted November 30, 2010 Report Share Posted November 30, 2010 stuntman-=!!" post="46847" timestamp="1291125284"]Prea simplu xDDar pun pariu ca nu stiai de "#CULOARE" ;) Quote Link to comment Share on other sites More sharing options...
Th3_Bes7 Posted November 30, 2010 Report Share Posted November 30, 2010 E foare bun turorialul.Bravo 10/10!!! Quote FreeMapper Link to comment Share on other sites More sharing options...
Guest farse Posted November 30, 2010 Report Share Posted November 30, 2010 [tt]stock hexToCol(hex){new str[9];format(str,9,"{%x}",hex);return str;} printf("%s",hexToCol(0xFF77EE)); #define Color:Try 0xFF77EE printf("%s",hexToCol(Color:Try));[/tt]Arata prea punky 8) Quote Link to comment Share on other sites More sharing options...
TheGuardianAngel Posted December 1, 2010 Report Share Posted December 1, 2010 Frumos tutorialul , bravo zh3r0. Quote Link to comment Share on other sites More sharing options...
[RSS]Cops_sandu Posted December 1, 2010 Report Share Posted December 1, 2010 foarte frumoase toturial Quote wtf?I fucking then school??????fuck school ))) Link to comment Share on other sites More sharing options...
zroT Posted December 2, 2010 Report Share Posted December 2, 2010 Bravo zh3r0, frumos tutorial 10/10PS: De acum inainte sa fie cat mai multe tutoriale 0,3c Quote Link to comment Share on other sites More sharing options...
AsSsASIN Posted December 5, 2010 Report Share Posted December 5, 2010 intradevar, faza cu [pawn]#define COLOR_DBLUE "{FFFFFFF}"[/pawn] nu stiam, good job.P.S: farsee, scoate ignore, nu fi marlan :* Quote Link to comment Share on other sites More sharing options...
Jo!nt Posted December 5, 2010 Report Share Posted December 5, 2010 Arata excelent Y like this color :X Quote Link to comment Share on other sites More sharing options...
eXtreMe96 Posted December 18, 2010 Report Share Posted December 18, 2010 Scuzati de offtop dar sepaote de folosit in mesaj mai multe culori la 0.3b Quote lol Link to comment Share on other sites More sharing options...
Guest PlayON Posted December 18, 2010 Report Share Posted December 18, 2010 eXtreMe" post="48379" timestamp="1292646107"]Scuzati de offtop dar sepaote de folosit in mesaj mai multe culori la 0.3bDoar in 0.3c, esti chior nu vezi bine ce am zis? Quote Link to comment Share on other sites More sharing options...
k3nw00d_kri5ty Posted December 20, 2010 Report Share Posted December 20, 2010 Frumos !! 10/10 !Dar am o problema Folosesc GodFather dar la chestia asta cu stats daca o colorez imi dispare linia in joc. format(coordsstring, sizeof(coordsstring), ""CREM"Level:["BLUE"%d"CREM"] Sex:["BLUE"%s"CREM"] Age:["BLUE"%d"CREM"] Origin:["BLUE"%s"CREM"] SpawnHealth:["BLUE"%.1f"CREM"] Cash:["BLUE"%s"CREM"] Bank:["BLUE"%s"CREM"] Ph:["BLUE"%d"CREM"]", level,atext,age,otext,shealth+50, FormatMoney(cash), FormatMoney(account), pnumber); SendClientMessage(playerid, -1,coordsstring);Ce trebuie sa fac in cazul asta? Quote Link to comment Share on other sites More sharing options...
k3nw00d_kri5ty Posted December 20, 2010 Report Share Posted December 20, 2010 Am inteles , mersi mult. Quote Link to comment Share on other sites More sharing options...
[M]Neonkiller Posted January 1, 2011 Report Share Posted January 1, 2011 FF Cool tutorialul , 10/10 .asa e si pt dialoguri nu ? Quote Link to comment Share on other sites More sharing options...
Guest PlayON Posted January 1, 2011 Report Share Posted January 1, 2011 Neonkiller" post="49509" timestamp="1293882245"]FF Cool tutorialul , 10/10 .asa e si pt dialoguri nu ?Dialoguri, chat, 3dtext si cam atata.Nu merge la butoanele de la dialog. Quote Link to comment Share on other sites More sharing options...
ruben88 Posted January 2, 2011 Report Share Posted January 2, 2011 Da,si mie ami place,thx Quote Link to comment Share on other sites More sharing options...
[M]Neonkiller Posted January 2, 2011 Report Share Posted January 2, 2011 Frumos !! 10/10 !Dar am o problema Folosesc GodFather dar la chestia asta cu stats daca o colorez imi dispare linia in joc. format(coordsstring, sizeof(coordsstring), ""CREM"Level:["BLUE"%d"CREM"] Sex:["BLUE"%s"CREM"] Age:["BLUE"%d"CREM"] Origin:["BLUE"%s"CREM"] SpawnHealth:["BLUE"%.1f"CREM"] Cash:["BLUE"%s"CREM"] Bank:["BLUE"%s"CREM"] Ph:["BLUE"%d"CREM"]", level,atext,age,otext,shealth+50, FormatMoney(cash), FormatMoney(account), pnumber); SendClientMessage(playerid, -1,coordsstring); Ce trebuie sa fac in cazul asta? incearca asta format(coordsstring, sizeof(coordsstring), ""CREM"Level:"BLUE"[%d]"CREM" Sex:"BLUE"[%s]"CREM" Age:"BLUE"[%d]"CREM" Origin:"BLUE"[%s]"CREM" SpawnHealth:"BLUE"[%.1f]"CREM" Cash:"BLUE"[%s]"CREM" Bank "BLUE"[%s]"CREM" Ph:"BLUE"[%d]"CREM"", level,atext,age,otext,shealth+50, FormatMoney(cash), FormatMoney(account), pnumber); SendClientMessage(playerid, -1,coordsstring); scuzama daca nu merge , is foarte obosit Quote Link to comment Share on other sites More sharing options...
MrBlack Posted January 2, 2011 Report Share Posted January 2, 2011 Foarte tare Zh3r0 , acum am un GameMode , foarte colorat :D Quote Creation's:[Map]Chiliad Stunt for Fun[Map] Plaja LS ( first map)[Tut]Cum sa vezi playerii pe navigator[Tut] Cum sa faci un textdraw cu cati playeri sunt online pe server.[FS] Admin Gun's Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.