advertisement - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: advertisement (
/showthread.php?tid=301209)
advertisement -
[SRB]Genius - 03.12.2011
Hello,i need help,how to make a advertisement on my server,to every few minutes send massages to players whit server forum or ip,but i dont know have to make that.
Sorry for bad English
Re: advertisement -
98rp - 03.12.2011
You need to make some NPC Mods got it.
Re: advertisement -
grand.Theft.Otto - 03.12.2011
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;
}
Re: advertisement -
[MG]Dimi - 03.12.2011
http://forum.sa-mp.com/showthread.ph...Random+message
This is good one.
Also
http://forum.sa-mp.com/showthread.ph...ghlight=Random
Re: advertisement -
[SRB]Genius - 04.12.2011
Ok,thanks,lock this