29.10.2010, 17:31
if you want to add this in this game mode script:
#define ANNOUNCEMENT 0xFFFF00AA //Add this at the top of the script!
forward GlobalAnnouncement(); //Add this at the top of the script!
new Msg;
new Announcements[8][128] = { //Add this above main!
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here"};
public GlobalAnnouncement() //Add this under OnPlayerCommand Text right at the bottom!
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;}
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;}
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg++;}
case 5: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[5]); Msg++;}
case 6: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[6]); Msg++;}
case 7: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[7]); Msg = 0;}
}
return 1;
}
#define ANNOUNCEMENT 0xFFFF00AA //Add this at the top of the script!
forward GlobalAnnouncement(); //Add this at the top of the script!
new Msg;
new Announcements[8][128] = { //Add this above main!
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here",
"[MSG]:Your Message here"};
public GlobalAnnouncement() //Add this under OnPlayerCommand Text right at the bottom!
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[0]); Msg++;}
case 1: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[2]); Msg++;}
case 3: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[4]); Msg++;}
case 5: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[5]); Msg++;}
case 6: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[6]); Msg++;}
case 7: {SendClientMessageToAll(ANNOUNCEMENT,Announcements[7]); Msg = 0;}
}
return 1;
}