Random Text Draws
#1

How do I make a textdraw every 10 seconds change to saying something else?

Like I want it to say:

Welcome to our server (then 10 seconds later it changes to) You are playing LVDM Mode
Reply
#2

Use a timer.
Reply
#3

pawn Код:
SetTimerEx("Callback", 1000 * 10, false, "i", playerid); // TIMER

//
forward Callback(playerid); public Callback(playerid) //  
{
      TextDrawHideForPlayer(playerid, TeXTDRAW);
      TextDrawShowForPlayer(playerid, TEXTDRAW2);
}
Reply
#4

You don't need to use ^ above post you could just do something like

pawn Код:
new Announce[][] = {
     "Supra release today!",
     "Scripter Hiring today!",
     //"Rock time!",
     "Last Textdraw"
};
keep in mind that if you gonna add a message for textdraw there is always , at the end. for the last one there will be no ,

just like this

pawn Код:
"Last Textdraw"
then OnGameModeInit (or OnFilterScriptInit)

pawn Код:
SetTimer("Announcement", 10000, true); //will create a timer - 10 secs and will repeat (true)
pawn Код:
public Announcement()
{
     TextDrawSetString(YourText, Announce[random(sizeof(Announce))]);
     return 1;
}
you have create your own textdraw and replace YourText with your TextDraw name
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)