Message every 5 minutes - 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: Message every 5 minutes (
/showthread.php?tid=382428)
Message every 5 minutes -
SkyWings - 03.10.2012
I need a system, which can write messages every ~5 minutes. Ads and etc..
AW: Message every 5 minutes -
BiosMarcel - 03.10.2012
PHP код:
public OnGameModeInit()
{
SetTimer("Message",300000,true);
}
PHP код:
forward Message();
public Message()
{
SendClientMessageToAll(yourcolor,"The Message");
return 1;
}
Re: Message every 5 minutes -
Roel - 03.10.2012
Код:
ongamemodeinit:
SetTimer("minuteTimer",60000*5,true);
// Somewhere in your gamemode
forward minuteTimer();
public minuteTimer()
{
SendClientMessageToAll(color,"some text");
return 1;
}
Shit to late
Re: Message every 5 minutes -
SkyWings - 03.10.2012
Thanks everyone.