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

pawn Код:
//Top of your script
new infotimer;
new InfoMessage;

forward Information();

//Put this under OnGameModeInit
infotimer = SetTimer("Information", 1800000, 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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)