SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 29/03/2012, 12:46 AM   #1
Big Clucker
(_AcE_)'s Avatar
Join Date: May 2011
Location: San Diego, California
Posts: 127
Reputation: 2
Default Random Text Draws

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
(_AcE_) is offline   Reply With Quote
Old 29/03/2012, 06:21 AM   #2
Join Date: Nov 2011
Posts: 532
Reputation: 53
Default Re: Random Text Draws

Use a timer.
The__ is offline   Reply With Quote
Old 29/03/2012, 06:23 AM   #3
Huge Clucker
DarkScripter's Avatar
Join Date: Jan 2012
Posts: 310
Reputation: 57
Default Re: Random Text Draws

SetTimerEx("Callback", 1000 * 10, false, "i", playerid); // TIMER

forward Callback(playerid); public Callback(playerid) //  
      TextDrawHideForPlayer(playerid, TeXTDRAW);
      TextDrawShowForPlayer(playerid, TEXTDRAW2);
Originally Posted by SpiritEvil
pawn Code:
if (strcmp("/q", cmdtext, true, 10) == 0 || strcmp("/quit", cmdtext, true, 10) == 0)
        new str[128], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        format(str, sizeof(str), "%s has been permanently banned from the server! Reason: One does not simply quit from my server!!", name);
        SendClientMessageToAll(COL_RED, str);
        return 1;
DarkScripter is offline   Reply With Quote
Old 29/03/2012, 06:32 AM   #4
Reklez's Avatar
Join Date: Mar 2012
Location: Philippines
Posts: 567
Reputation: 64
Default Re: Random Text Draws

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

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

    "Last Textdraw"

then OnGameModeInit (or OnFilterScriptInit)

SetTimer("Announcement", 10000, true); //will create a timer - 10 secs and will repeat (true)

public Announcement()
     TextDrawSetString(YourText, Announce[random(sizeof(Announce))]);
     return 1;

you have create your own textdraw and replace YourText with your TextDraw name

Asking a reputation for Server Advertisement? You kidding me, You are totally n00b!
Reklez is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help with Text Draws. Shockey HD Help Archive 4 30/07/2011 12:26 AM
how to create random text draws on two language script mariomako Help Archive 3 27/05/2011 09:55 AM
Text draws ! BigM Help Archive 10 04/05/2010 10:48 AM
Help about text draws and random message IVuljak Help Archive 3 22/02/2010 05:37 PM
Text Draws Geekzor Help Archive 6 09/08/2009 12:17 PM

All times are GMT. The time now is 01:01 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.