How to make changing every 15 seconds textdraw?
#1

How to make changing every 15 seconds textdraw?

Thanks advance
Reply
#2

Create a timer, and use TextDrawSetString
Reply
#3

I tried so

Код:
forward TextdrawBot();
//OnGameModeInit
TextDrawShowForPlayer(playerid, Textdraw);
SetTimer("TextdrawBot", 15000, 1);

public TextdrawBot()
{
new xa = RandomEx(0, 0);
	switch (xa)
	{
	    case 0:
	{
	Textdraw = TextDrawCreate(18.000000,428.000000,"HAVE FUN!");
	TextDrawAlignment(Textdraw,0);
	TextDrawBackgroundColor(Textdraw,0x678976ff);
	TextDrawFont(Textdraw,3);
	TextDrawLetterSize(Textdraw,0.199999,0.900000);
	TextDrawColor(Textdraw,0x435454FF);
	TextDrawSetOutline(Textdraw,1);
	TextDrawSetProportional(Textdraw,1);
	TextDrawSetShadow(Textdraw,1);
	}
return 1;
}
Reply
#4

:O what did you try to do here ?

and which text are you want to change to every 15 seconds ?
Reply
#5

instead of
pawn Код:
new TextdrawBot();
do
pawn Код:
forward TextdrawBot();
then use
pawn Код:
TextDrawSetString
instead of
pawn Код:
TextDrawCreate
Reply
#6

to so I did, here he wrote it wrong because they remove the code from the gamemode

with forward
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)