Text Draw Display Time - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Text Draw Display Time (
/showthread.php?tid=68388)
Text Draw Display Time -
Alec24 - 09.03.2009
I need some help so that a text draw displays for a longer time.
Код:
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!");
}
Re: Text Draw Display Time -
darkrider366 - 09.03.2009
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 Код:
Public Textdraw123()
{
//the code u put in the command,
return 1;
}
Re: Text Draw Display Time -
Alec24 - 09.03.2009
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;
}