All pastes #1873007 Raw Edit

Unnamed

public text v1 · immutable
#1873007 ·published 2010-05-27 18:50 UTC
rendered paste body
/*
THIS SCRIPT WAS MADE BY VIKKMAN
USE IT WISE & DON'T DELETE THE CREDITS

YOURS SINCERELY,
                   VIKKMAN.
*/

#include <a_samp>

#define TIMER       150000
#define COLOR_GOLD 	0xF6C861AA

new rMessageList[][] = {
"Random Message 1 - Will not be preceeded or folowed by itself.",
"Random Message 2 - Will not be preceeded or folowed by itself.",
"Random Message 3 - Will not be preceeded or folowed by itself.",
"Random Message 4 - Will not be preceeded or folowed by itself.",
"Random Message 5 - Will not be preceeded or folowed by itself."
};
new rCheckList[sizeof(rMessageList)];

forward rMessage();

public rMessage()
{
	new rNumber, Check = 0;
	do{
	    for(new i=0; i<sizeof(rCheckList); i++)
			if(rCheckList[i] != 0)
				Check++;
		if(Check == sizeof(rCheckList))
		    for(new i=0; i<sizeof(rCheckList); i++)
		        rCheckList[i] = 0;
		rNumber = random(sizeof(rMessageList));
	}while(rCheckList[rNumber]);
    SendClientMessageToAll(COLOR_GOLD, rMessageList[rNumber]);
	rCheckList[rNumber] = 1;
}

public OnFilterScriptInit()
{
    SetTimer("rMessage", TIMER, true);
}