Server broadcasts.
#2

pawn Код:
// Somewhere at your script:
forward RandomMessage(); // Or whatever name you want.

// Under OnGameModeInit:
SetTimer("RandomMessage",120000,1); // Change the timer according to what you prefer.

//Any place you like:
public RandomMessage()
{
    new mrand =random(1); // Change the number according to the number of messages you're going to send
    if(mrand == 1)
    {
    SendClientMessageToAll(0xFFF000AA,"Visit our forums at: put forum here etc");
    }
}
Reply


Messages In This Thread
Server broadcasts. - by CesarLT - 04.06.2014, 10:02
Re: Server broadcasts. - by Parallex - 04.06.2014, 10:07
Re: Server broadcasts. - by Konstantinos - 04.06.2014, 10:09
Re: Server broadcasts. - by CesarLT - 04.06.2014, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)