Message after time - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Message after time (
/showthread.php?tid=89189)
Message after time -
Vadonis - 31.07.2009
hi i want to know how to make message who shows after 10min
I use something like this
Код:
#define news_Amount 0
Код:
forward news(playerid);
Код:
SetTimer("piedavajums",// 10mins, 1);
Код:
}
public piedavajums(playerid) {
SendClientMessageToAll(0x474949FF, "Todays news");
GivePlayerMoney(playerid,news_Amount);
}
I wan to make it shows all players who plays after 10 minuts
Plz help me
Re: Message after time -
Correlli - 31.07.2009
https://sampwiki.blast.hk/wiki/Random_Messages
Re: Message after time -
lavamike - 31.07.2009
The timer is in miliseconds.
1000 Milliseconds = 1 Second
So, 10 * 60 = 600
That means 600 Seconds = 10 Minutes
So, 600 * 1000 = 600000
600000 Miliseconds = 600 Seconds/10 Minutes
SetTimer("piedavajums", 600000, 1);
Re: Message after time -
Vadonis - 31.07.2009
thanks
Lavamike