Inserting Text Draws in GameMod?
#1

I have this.

Код:
//On top of script:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
 
//In OnGameModeInit or any other place, we procced to create our textdraw:
Textdraw0 = TextDrawCreate(4.000000,330.000000,"Original Cops And Robbers");
Textdraw1 = TextDrawCreate(3.000000,317.000000,"Welcome to");
Textdraw2 = TextDrawCreate(453.000000,2.000000,"Hosted by www.sampservers.info");
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw0,0xff00ff99);
TextDrawBackgroundColor(Textdraw1,0x00ff0099);
TextDrawBackgroundColor(Textdraw2,0x0000ff99);
TextDrawFont(Textdraw0,2);
TextDrawLetterSize(Textdraw0,0.299999,1.100000);
TextDrawFont(Textdraw1,2);
TextDrawLetterSize(Textdraw1,0.399999,1.000000);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,0.299999,1.000000);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetShadow(Textdraw0,3);
TextDrawSetShadow(Textdraw1,1);
TextDrawSetShadow(Textdraw2,1);
The "new Text:Textdraw0;" Im quessing goses under the includes?


The stuff that gose under OnGameModeInit, I put it in "on its own" and got errors.

What do i have to add?

Thanks
Reply


Messages In This Thread
Inserting Text Draws in GameMode? - by Jackster - 12.07.2010, 01:36
Re: Inserting Text Draws in GameMod? - by TheInnocentOne - 12.07.2010, 02:42
Re: Inserting Text Draws in GameMod? - by Jackster - 12.07.2010, 17:56
Re: Inserting Text Draws in GameMod? - by MikkelGutten - 12.07.2010, 18:02
Re: Inserting Text Draws in GameMod? - by Jackster - 12.07.2010, 18:12
Re: Inserting Text Draws in GameMod? - by MikkelGutten - 12.07.2010, 18:14
Re: Inserting Text Draws in GameMod? - by Jackster - 12.07.2010, 18:20
Re: Inserting Text Draws in GameMod? - by MikkelGutten - 12.07.2010, 18:23
Re: Inserting Text Draws in GameMod? - by Jackster - 12.07.2010, 18:26
Re: Inserting Text Draws in GameMod? - by MikkelGutten - 12.07.2010, 18:27

Forum Jump:


Users browsing this thread: 4 Guest(s)