help message automatically
#1

how do I put the message automatically in chat for all players?
for example every 5 minutes.
Reply
#2

Quote:
Originally Posted by emuk
how do I put the message automatically in chat for all players?
for example every 5 minutes.
Here you go:

At the top of your gamemode:

forward automsg();

under: OnGameModeInIt:

SetTimer("automsg", 300000, 1); // This timer is for 5 minutes. Replace 300000 with 60000 if you want 1 minute.

At the bottow of your gamemode:

public automsg()
{
SendClientMessageToAll(0x0FD9FA40, "PLACE YOUR TEXT HERE WHAT THEY NEED TO SEE");
}


and done!
Reply
#3

Quote:
Originally Posted by eparea51
Quote:
Originally Posted by emuk
how do I put the message automatically in chat for all players?
for example every 5 minutes.
Here you go:

At the top of your gamemode:

forward automsg();
SetTimer("automsg", 300000, 1); // This timer is for 5 minutes. Replace 300000 with 60000 if you want 1 minute.

At the bottow of your gamemode:

public automsg()
{
SendClientMessageToAll(0x0FD9FA40, "PLACE YOUR TEXT HERE WHAT THEY NEED TO SEE");
}


and done!
The timer goes under OnGameModeInit
Reply
#4

Quote:
Originally Posted by agusfn20
Quote:
Originally Posted by eparea51
Quote:
Originally Posted by emuk
how do I put the message automatically in chat for all players?
for example every 5 minutes.
Here you go:

At the top of your gamemode:

forward automsg();
SetTimer("automsg", 300000, 1); // This timer is for 5 minutes. Replace 300000 with 60000 if you want 1 minute.

At the bottow of your gamemode:

public automsg()
{
SendClientMessageToAll(0x0FD9FA40, "PLACE YOUR TEXT HERE WHAT THEY NEED TO SEE");
}


and done!
The timer goes under OnGameModeInit
edited ^^ stupid me ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)