21.12.2015, 13:55
PHP код:
#include <a_samp>
#define MAX_MESSAGES 5 //Change accordingly
#define MAX_MESSAGE_TEXT 128 //Change accordingly
#define MESSAGE_COLOR -1 //Change This
new message_array[MAX_MESSAGES][MAX_MESSAGE_TEXT]=
{
" Don't Forget to visit our Forums at www.comingsoon.com ",
" Use /levels to check the levels available ",
" Test Message ",
" Test Message ",
" Test Message "
};
forward RandomMessage();
public RandomMessage()
{
new messageid = random(MAX_MESSAGES);
SendClientMessageToAll(MESSAGE_COLOR, message_array[messageid]);
return 1;
}
public OnGameModeInit()
{
SetTimer("RandomMessage", 60000, true);
return 1;
}