Inserting Text Draws in GameMod?
#2

pawn Код:
/* 3 lines below go anywhere outside of a callback */
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;

public OnGameModeInit()
{
    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);
    return 1;
}
Then you can use the following where you need them:
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
Or, if you want to show the textdraw's to all online players:
pawn Код:
TextDrawShowForAll(playerid, Textdraw0);
TextDrawShowForAll(playerid, Textdraw1);
TextDrawShowForAll(playerid, Textdraw2);
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: 3 Guest(s)