Message after time
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/Random_Messages
Reply
#3

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);
Reply
#4

thanks Lavamike
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)