new Text:servername;
servername = TextDrawCreate(0.0, 434.0,"Islenski GTA SA Serverinn");
TextDrawFont(servername,3);
TextDrawLetterSize(servername,20,20);
TextDrawColor(servername,0x00F6FF);
TextDrawSetShadow(servername,1);
TextDrawSetOutline(servername,1);
TextDrawBackgroundColor(servername,0x0F60FF);
TextDrawUseBox(servername,1);
TextDrawBoxColor(servername,0xF600FF);
new Text:servername;
servername = TextDrawCreate(0.0, 0.0,"Islenski GTA SA Serverinn");
TextDrawFont(servername,3);
TextDrawLetterSize(servername,20,20);
TextDrawColor(servername,0x00F6FF);
TextDrawSetShadow(servername,1);
TextDrawSetOutline(servername,1);
TextDrawBackgroundColor(servername,0x0F60FF);
TextDrawUseBox(servername,1);
TextDrawBoxColor(servername,0xF600FF);
Originally Posted by djdanni
you said add thi in Under OnPlayerConnect?
This is texture witch whill be always on the screen. abd when i try to add it i just get error. |
//Somewhere before
new Text:servername1;
new Text:servername2;
//OnGameModeInit (gets called when the server starts - once)
servername1 = TextDrawCreate(0.0, 434.0,"Islenski GTA SA Serverinn");
servername2 = TextDrawCreate(0.0, 0.0,"Islenski GTA SA Serverinn");
TextDrawFont(servername1,3);
TextDrawFont(servername2,3);
TextDrawLetterSize(servername1,20,20);
TextDrawLetterSize(servername2,20,20);
TextDrawColor(servername1,0x00F6FF);
TextDrawColor(servername2,0x00F6FF);
TextDrawSetShadow(servername1,1);
TextDrawSetShadow(servername2,1);
TextDrawSetOutline(servername1,1);
TextDrawSetOutline(servername2,1);
TextDrawBackgroundColor(servername1,0x0F60FF);
TextDrawBackgroundColor(servername2,0x0F60FF);
TextDrawUseBox(servername1,1);
TextDrawUseBox(servername2,1);
TextDrawBoxColor(servername1,0xF600FF);
TextDrawBoxColor(servername2,0xF600FF);
//OnPlayerConnect (gets called when a player connects)
TextDrawShowForPlayer(playerid, servername1);
TextDrawShowForPlayer(playerid, servername2);
//On top of script:
new Text:Textdraw0;
new Text:Textdraw1;
//In OnGameModeInit or any other place, we procced to create our textdraw:
Textdraw0 = TextDrawCreate(279.000000,426.000000,"Islenski GTA SA Serverinn");
Textdraw1 = TextDrawCreate(3.000000,436.000000,"[url]http://www.gtasa.is"[/url]);
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawBackgroundColor(Textdraw1,0x00ff0033);
TextDrawFont(Textdraw0,2);
TextDrawLetterSize(Textdraw0,0.599999,2.000000);
TextDrawFont(Textdraw1,2);
TextDrawLetterSize(Textdraw1,0.399999,1.000000);
TextDrawColor(Textdraw0,0x00ff00ff);
TextDrawColor(Textdraw1,0x0000ffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,1);