21.02.2011, 13:19
Hello I have these codes here.
This is placed under
First question is, the 1200, shown next to "SendRandomMsgToAll" , does that correspond to when each message shows up, in that case it is every 20minutes one random message will show up (random messages displayed below) (1200 = 1200 seconds = 20mins)
Next question is, these messages appear in the chatbox at the top left.
How do I make it so they appear at the botton of the screen, instead of in the chatbox?
Like this (I made this picture in paint).
Thanks in advance.
pawn Код:
SetTimer("SendRandomMsgToAll", 1200 * 1000, 1);
pawn Код:
public OnFilterScriptInit()
{
pawn Код:
forward SendRandomMsgToAll();
public SendRandomMsgToAll()
{
switch(random(4))
{
case 0: SendClientMessageToAll(0x00ff00ff, "Please donate to keep the server running.");
case 1: SendClientMessageToAll(0x00ff00ff, "Version 7.0.0");
case 2: SendClientMessageToAll(0x00ff00ff, "Want to go afk? Type /afk");
case 3: SendClientMessageToAll(0x00ff00ff, "Type /anns to view the current global announcements.");
}
}
Next question is, these messages appear in the chatbox at the top left.
How do I make it so they appear at the botton of the screen, instead of in the chatbox?
Like this (I made this picture in paint).
Thanks in advance.