Text On Screen
#1

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
Reply
#2

TextDraw or GameTextForPlayer
Reply
#3

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.
Reply
#4

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.
Reply
#5

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?
Reply
#6

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);
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)