Messages :D
#1

Ok I need message at bottom of screen saying "Visit Website rpfclan.tk" and then after 10 seconds it goes onto "Put rpfclan.no-ip.org:7777 In Your Favs"

Thanks if anyone can help
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawCreate
https://sampwiki.blast.hk/wiki/TextDrawShowForAll
https://sampwiki.blast.hk/wiki/TextDrawSetString

Use a Timer and Change the Text with TextDrawSetString every 10 seconds.
Reply
#3

Thanks

But what I mean is not in chat box like

Below map

The what it says
Reply
#4

You can put a Textdraw anywhere you like.
Here's a TextDraw creator that I find really useful as you use it in-game:
http://forum.sa-mp.com/showthread.ph...xt+draw+editor
Reply
#5

At top of your cript:
pawn Код:
new Text:MyChangingText;
new MessageNum;
OnGameModeInit:
pawn Код:
MyChangingText= TextDrawCreate(3.4, 430.0, "Visit Website rpfclan.tk");
TextDrawTextSize(MyChangingText,629.000000,2.000000);
TextDrawFont(MyChangingText,2);
TextDrawLetterSize(MyChangingText,0.5,1.4);
TextDrawColor(MyChangingText,0x00FF00FF);
SetTimer("ChangeMsg",10000,true); // Textdraw will change every 10 seconds.
OnPlayerConnect:
pawn Код:
TextDrawShowForPlayer(playerid, MyChangingText);
Put this at the bottom of your script:
pawn Код:
forward ChangeMsg();
public ChangeMsg()
{
    switch(MessageNum)
    {
        case 0: TextDrawSetString(abc, "Visit Website rpfclan.tk"), MessageNum++;
        case 1: TextDrawSetString(abc, "Put rpfclan.no-ip.org:7777"), MessageNum++;
        case 2: TextDrawSetString(abc, "Whatever here...."), MessageNum=0; // =0; Must be at the LAST case.
        //You can add more cases here, but don't forget to change all cases above the last to MessageNum++; and the last to MessageNum=0;
    }
    return 1;
}

I hope this is what you ment, and come along with it.
If you have any questions, feel free to ask them.


Greetings,
Jeffry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)