10.02.2011, 18:42
Hey all, im making a textdraw but its not showing at all!!!
Whats wrong??
BTW what are the coordinates to set it under the radar/map. Thanks.
pawn Код:
new Text:Txt;
new HelpBot[][]=
{
"Only B.A.S.E. Jumping Sev3r!",
"Add our server To your favourites!",
"To see your stats use /stats!",
"Read the /rules before playing!",
"If you're a newbie here, please read /help!"
};
//forward
forward Bot();
pawn Код:
public OnGameModeInit()
{
Txt = TextDrawCreate(2.000000, 429.000000, " ");
TextDrawAlignment(Txt, 0);
TextDrawBackgroundColor(Txt, 0xffffff33);
TextDrawFont(Txt, 1);
TextDrawLetterSize(Txt, 0.299999, 1.300000);
TextDrawColor(Txt, 0x0000ff99);
TextDrawSetOutline(Txt, 1);
TextDrawSetProportional(Txt, 1);
TextDrawSetShadow(Txt, 1);
return 1;
}
pawn Код:
public Bot()
{
SetTimer("Bot",20000,1); //The messages will randomly change every 20 seconds.
TextDrawSetString(Text:Txt, HelpBot[random(sizeof(HelpBot))]);
return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Txt);
return 1;
}
BTW what are the coordinates to set it under the radar/map. Thanks.