SendClientMessage Server wide
#5

pawn Code:
// ongamemodeinit

SetTimer("SendMSG",60000); // set for every 1 minute

// bottom of script

public SendMSG() // will send all messages from the RandomMSG array we created below every 1 minute
{
    new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG
    SendClientMessageToAll(0x33CCFFAA, RandomMSG[randMSG]); // Replace the "color" with your defined color.
    return 1;
}

// top of script

new RandomMSG[][] =
{
     "message 1 here",
     "message 2 here",
     "message 3 here",
     "etc..."
};
Reply


Messages In This Thread
SendClientMessage Server wide - by BrokinJesus - 10.09.2011, 04:28
Re: SendClientMessage Server wide - by Lorenc_ - 10.09.2011, 04:32
Re: SendClientMessage Server wide - by iPLEOMAX - 10.09.2011, 04:36
Re: SendClientMessage Server wide - by BrokinJesus - 10.09.2011, 04:38
Re: SendClientMessage Server wide - by grand.Theft.Otto - 10.09.2011, 04:52
Re: SendClientMessage Server wide - by iPLEOMAX - 10.09.2011, 04:52
Re: SendClientMessage Server wide - by =WoR=Varth - 10.09.2011, 06:46
Re: SendClientMessage Server wide - by BrokinJesus - 10.09.2011, 16:12

Forum Jump:


Users browsing this thread: 1 Guest(s)