Text Draw Display Time
#1

I need some help so that a text draw displays for a longer time.

Код:
new Text:Textdraw0;
Код:
	Textdraw0 = TextDrawCreate(325.000000,298.000000,"<message>");
	TextDrawUseBox(Textdraw0,1);
	TextDrawBoxColor(Textdraw0,0xff000033);
	TextDrawTextSize(Textdraw0,0.000000,1296.000000);
	TextDrawAlignment(Textdraw0,2);
	TextDrawBackgroundColor(Textdraw0,0x000000ff);
	TextDrawFont(Textdraw0,1);
	TextDrawLetterSize(Textdraw0,1.000000,2.499999);
	TextDrawColor(Textdraw0,0xffffffff);
	TextDrawSetOutline(Textdraw0,1);
	TextDrawSetProportional(Textdraw0,1);
	TextDrawSetShadow(Textdraw0,4);
Код:
if(strcmp(cmd, "/ss", true) == 0)	{
		if (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid)) return TextDrawShowForAll(Text:Textdraw0);
		else return SendClientMessage(playerid, RED, "You Are Not A Lead Admin!");
	}
Reply
#2

make the command then put this timer inside it and put the code from the timer in the public textdraw123 i showed you
pawn Код:
SetTimer("Textdraw123", 300, 1);
pawn Код:
forward Textdraw123();
pawn Код:
Public Textdraw123()
{
  //the code u put in the command,
  return 1;
}
Reply
#3

I am not sure what you are trying to say. I this correct.

Код:
SetTimer("Textdraw123", 300, 1);
	Public Textdraw123()
	{
   if(strcmp(cmd, "/ss", true) == 0) 
	{
		if (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid))
		}
		forward Textdraw123();
		TextDrawShowForAll(Text:Textdraw0);
 		{
		else
		}
		SendClientMessage(playerid, RED, "You Are Not A Lead Admin!");
	}
  return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)