SA-MP Forums Archive
other gametext - 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: other gametext (/showthread.php?tid=112070)



other gametext - PANNA - 05.12.2009

Well, i have seen on a server they got a gametext like this(for the whole time you are online):



Is it possible to script that in 0.3 too?
please tell meh how.


Re: other gametext - KnooL - 05.12.2009

This is mine, it'll show a textdraw at the right rop at your screen.
Change 501.000000,9.000000 and the text ~g~M~w~CRP~r~G to your own.


On top under defining (above ongamemodeinit)

new Text:MCRPGTextDraw;

OnGameModeInit:
MCRPGTextDraw = TextDrawCreate(501.000000,9.000000,"~g~M~w~CRP~r~G ");
TextDrawAlignment(MCRPGTextDraw,0);
TextDrawBackgroundColor(MCRPGTextDraw,0x000000cc);
TextDrawFont(MCRPGTextDraw,3);
TextDrawLetterSize(MCRPGTextDraw,1.000000,1.400000 );
TextDrawColor(MCRPGTextDraw,0xffffffff);
TextDrawSetOutline(MCRPGTextDraw,1);
TextDrawSetProportional(MCRPGTextDraw,1);
TextDrawSetShadow(MCRPGTextDraw,1);

OnPlayerConnect:

TextDrawShowForPlayer(playerid,MCRPGTextDraw);


Re: other gametext - PANNA - 05.12.2009

Quote:
Originally Posted by KnooL
This is mine, it'll show a textdraw at the right rop at your screen.
Change 501.000000,9.000000 and the text ~g~M~w~CRP~r~G to your own.


On top under defining (above ongamemodeinit)

new Text:MCRPGTextDraw;

OnGameModeInit:
MCRPGTextDraw = TextDrawCreate(501.000000,9.000000,"~g~M~w~CRP~r~G ");
TextDrawAlignment(MCRPGTextDraw,0);
TextDrawBackgroundColor(MCRPGTextDraw,0x000000cc);
TextDrawFont(MCRPGTextDraw,3);
TextDrawLetterSize(MCRPGTextDraw,1.000000,1.400000 );
TextDrawColor(MCRPGTextDraw,0xffffffff);
TextDrawSetOutline(MCRPGTextDraw,1);
TextDrawSetProportional(MCRPGTextDraw,1);
TextDrawSetShadow(MCRPGTextDraw,1);

OnPlayerConnect:

TextDrawShowForPlayer(playerid,MCRPGTextDraw);
it works
but how can i make it smaller because i don't see everything i want to have there


Re: other gametext - KnooL - 05.12.2009

I made it using http://forum.sa-mp.com/index.php?topic=29132.0
I'm not very good at scripting, so check that fs out. It'll certainly work.