How to make changing every 15 seconds textdraw? - 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: How to make changing every 15 seconds textdraw? (
/showthread.php?tid=265590)
How to make changing every 15 seconds textdraw? -
Join7 - 01.07.2011
How to make changing every 15 seconds textdraw?
Thanks advance
Re: How to make changing every 15 seconds textdraw? -
Skylar Paul - 01.07.2011
Create a timer, and use
TextDrawSetString
Re: How to make changing every 15 seconds textdraw? -
Join7 - 01.07.2011
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;
}
Re: How to make changing every 15 seconds textdraw? -
tal_peretz - 01.07.2011
:O what did you try to do here ?
and which text are you want to change to every 15 seconds ?
Re: How to make changing every 15 seconds textdraw? -
BigETI - 01.07.2011
instead of
do
then use
instead of
Re: How to make changing every 15 seconds textdraw? -
Join7 - 01.07.2011
to so I did, here he wrote it wrong because they remove the code from the gamemode
with forward