Messages :D
#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


Messages In This Thread
Messages :D - by dillo1000 - 23.10.2010, 15:38
Re: Messages :D - by Jeffry - 23.10.2010, 15:40
Re: Messages :D - by dillo1000 - 23.10.2010, 15:53
Re: Messages :D - by Badger(new) - 23.10.2010, 16:27
Re: Messages :D - by Jeffry - 24.10.2010, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)