Auto Message
#1

How can i put Auto message System? Got link?
Reply
#2

Around top of Script:
Код:
new RandomMSG[][] =
{
    "Message 1", //edit
    "Message 2", //edit
    "Message 3"  //edit
};
Код:
public OnGameModeInit()
{	
	DisableInteriorEnterExits();
	SetTimer("SendMSG", 300000, true); //300000 is 5min (60000 X min to find the minutes)

	return 1;
}
Around end of Script:
Код:
forward SendMSG();
public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(COLOR_MSGCOLOR, RandomMSG[randMSG]); //Remember to change the color
}
i think that all
Reply
#3

Quote:
Originally Posted by MrEnd
Посмотреть сообщение
ONE SEC!!! EDITING
FORGOT SOMETHING xD



Around top of Script:
Код:
new RandomMSG[][] =
{
    "Message 1",
    "Message 1",
    "Message 1",
};
Around end of Script:
Код:
forward SendMSG();
public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(COLOR_MSGCOLOR, RandomMSG[randMSG]);
}
i think that all
You forgot the timer
Reply
#4

haha i saw it :P Fixed it

thats why i wrote
ONE SEC!!! EDITING
FORGOT SOMETHING xD
Reply
#5

Yes, Thank you But if i need to change the message, is there anything to do? :d
Reply
#6

Код:
    "Message 1", //edit
    "Message 2", //edit
    "Message 3"  //edit
you can edit that Message 1/2/3 inside " " ofc
But remember, you cant just write
"Message" under there its "Message" now
you gotta have a comma after the message over

like
Код:
"Message",
"Message"
If you see the difference its just a little difference
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)