Send server messages to chat

Hello people <3

How do I send server messages to the chat using loops?

Thanks

Make use of exec( „say ” +string ), where string is the message u want to send. Has to be string. Just loop it with while or for.

1 Like

This would work, edit to suit. Dont forget to add the script load command in the _callbacksetup.gsx

init()
{
		messages();
}
  
messages()
{
		while(1)
		{
		level endon("game_ended");
		wait 30;
		exec("say MESSAGE 1");
		wait 30;
		exec("say MESSAGE 2");
		wait 30;
		exec("say MESSAGE 3");
		wait 30;
		exec("say MESSAGE 4 ");
		wait 30;
		exec("say MESSAGE 5");
		}
}		
1 Like

thanks a lot!!!