advertisement
#3

pawn Код:
// top of script

new RandomMSG[][] =
{
    "Come to this great stunt server! IP: ip_here",
    "Visit the server forums here: forum_site.com",
    "other ip's here",
    "other forum addresses here"
};

// ongamemodeinit

SetTimer("SendMSG", 60000, true); // sends every minute

// bottom of script

forward SendMSG();
public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG (which is 3)
    SendClientMessageToAll(-1, RandomMSG[randMSG]); // Replace the "color" with your defined color.
    return 1;
}
Reply


Messages In This Thread
advertisement - by [SRB]Genius - 03.12.2011, 15:13
Re: advertisement - by 98rp - 03.12.2011, 15:25
Re: advertisement - by grand.Theft.Otto - 03.12.2011, 15:32
Re: advertisement - by [MG]Dimi - 03.12.2011, 15:36
Re: advertisement - by [SRB]Genius - 04.12.2011, 08:17

Forum Jump:


Users browsing this thread: 2 Guest(s)