How to create a random text message that appears every 30 min?
#4

Quote:
Originally Posted by Cypress
Посмотреть сообщение
pawn Код:
//Top of your script
new infotimer;
new InfoMessage;

forward Information();

//Put this under OnGameModeInit
infotimer = SetTimer("Information", 300000, true);


//Put this under OnGameModeExit
KillTimer(infotimer);

//Put this somewhere in your script
public Information()
{
    switch(InfoMessage){
        case 0:
        {
            SendClientMessageToAll(color, "Saw cheater type /report id reason ");
            InfoMessage = 1;
        }
        case 1:
        {
            SendClientMessageToAll(color, "");
            InfoMessage = 2;
        }
        case 2:
        {
            SendClientMessageToAll(color, "");
            InfoMessage = 3;
        }
        case 3:
        {
            SendClientMessageToAll(color, "");
            InfoMessage = 4;
        }
        case 4:
        {
            SendClientMessageToAll(color, "");
            InfoMessage = 5;
        }
        case 5:
        {
            SendClientMessageToAll(your color, "");
            InfoMessage = 6;
        }
        case 6:
        {
            SendClientMessageToAll(your color, "");
            InfoMessage = 7;
        }

    }
    return 1;
}
Next time use search. I'm sure there are tons of this scripts.
This won't really work as supposed, as there is no 7th InfoMessage, also it is not random.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)