SA-MP Forums Archive
Text On Screen - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Text On Screen (/showthread.php?tid=87121)



Text On Screen - The Fame - 18.07.2009

Hey can you guys tell/help me on how to get a text like say " Penis and Balls " Above your Weapon Bar Like just to sit there so its like advertising and its just on the screen, how would i do that? Thanks Cheers


Re: Text On Screen - ByFukara - 18.07.2009

TextDraw or GameTextForPlayer


Re: Text On Screen - The Fame - 18.07.2009

Quote:
Originally Posted by ByFukara
TextDraw or GameTextForPlayer
Can you show me an Example of the script, Im not to sure on how to use this TextDraw Sorry, Only if you can.


Re: Text On Screen - stieben - 18.07.2009

Here you go!

//Top
Код:
new Text:Textdraw0;
//OnGameModeInIt
Код:
Textdraw0 = TextDrawCreate(493.000000,6.000000,"Penis and Balls");
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,0.199999,1.000000);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
//OnPlayerConnect
Код:
TextDrawShowForPlayer(playerid, Text:Textdraw0);
//OnPlayerDisconnect
Код:
TextDrawHideForPlayer(playerid, Text:Textdraw0);
I hope it works, I haven't tested it yet.


Re: Text On Screen - The Fame - 18.07.2009

Quote:
Originally Posted by stieben
Here you go!

//Top
Код:
new Text:Textdraw0;
//OnGameModeInIt
Код:
Textdraw0 = TextDrawCreate(493.000000,6.000000,"Penis and Balls");
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,0.199999,1.000000);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
//OnPlayerConnect
Код:
TextDrawShowForPlayer(playerid, Text:Textdraw0);
//OnPlayerDisconnect
Код:
TextDrawHideForPlayer(playerid, Text:Textdraw0);
I hope it works, I haven't tested it yet.
Thanks For Trying Didnt Help Got 14 Errors Complieing, Is there another way i could do this but maybe like an Generator Or Something?


Re: Text On Screen - The Fame - 18.07.2009

I Used TextDraw Expert to make one, when i put it into the script i get like 4 warnings, no errors, i run the server, nothings there

The Script

Код:
//On the top of your script
new Text:Textdraw0;

//In OnGameModeInit
Textdraw0 = TextDrawCreate(483, 4, "Neutral-Gamer.com");
TextDrawAlignment(Textdraw0, 1);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 1.0, 1.0);
TextDrawColor(Textdraw0, 0xD6FF00FF);
TextDrawSetShadow(Textdraw0, 0.1);
TextDrawSetOutline(Textdraw0, 0.1);



Re: Text On Screen - Anarkien - 18.07.2009

Quote:
Originally Posted by Phame
I Used TextDraw Expert to make one, when i put it into the script i get like 4 warnings, no errors, i run the server, nothings there

The Script

Код:
//On the top of your script
new Text:Textdraw0;

//In OnGameModeInit
Textdraw0 = TextDrawCreate(483, 4, "Neutral-Gamer.com");
TextDrawAlignment(Textdraw0, 1);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 1.0, 1.0);
TextDrawColor(Textdraw0, 0xD6FF00FF);
TextDrawSetShadow(Textdraw0, 0.1);
TextDrawSetOutline(Textdraw0, 0.1);
What are the warnings?
You have to post them if you want any help, as we're not psychic.