Random Messages
#6

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_COLORmessage_array[messageid]);
    return 
1;
}
public 
OnGameModeInit()
{
    
SetTimer("RandomMessage"60000true);
    return 
1;

The above compiles fine for me.. Copy paste and try again
Reply


Messages In This Thread
Random Messages - by Compiler - 21.12.2015, 11:27
Re: Random Messages - by FreAkeD - 21.12.2015, 11:31
Re: Random Messages - by xTURBOx - 21.12.2015, 12:24
Re: Random Messages - by Mic_H - 21.12.2015, 12:40
Re: Random Messages - by Compiler - 21.12.2015, 12:46
Re: Random Messages - by Mic_H - 21.12.2015, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)