Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define GREEN 0x21DD00FF
- #define RED 0xE60000FF
- #define ADMIN_RED 0xFB0000FF
- #define YELLOW 0xFFFF00FF
- #define ORANGE 0xF97804FF
- #define LIGHTRED 0xFF8080FF
- #define LIGHTBLUE 0x00C2ECFF
- #define PURPLE 0xB360FDFF
- #define PLAYER_COLOR 0xFFFFFFFF
- #define BLUE 0x1229FAFF
- #define LIGHTGREEN 0x38FF06FF
- #define DARKPINK 0xE100E1FF
- #define DARKGREEN 0x008040FF
- #define ANNOUNCEMENT 0x6AF7E1FF
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define GRAY 0xCECECEFF
- new RandMsg;
- new ANNOUNCEMENTS[6][128] ={
- "MESSAGE 1", // EDIT THIS
- "MESSAGE 2", // EDIT THIS
- "MESSAGE 3", // EDIT THIS
- "MESSAGE 4", // EDIT THIS
- "MESSAGE 5", // EDIT THIS
- "MESSAGE 6" // EDIT THIS
- };
- public OnFilterScriptInit()
- {
- RandMsg = 0;
- SetTimer("GlobalAnnouncement" ,120000,true); // Change the time if you want to. But remember, 1000 = 1 sec
- return 1;
- }
- forward GlobalAnnouncement();
- public GlobalAnnouncement()
- {
- switch (RandMsg)
- {
- case 0: {SendClientMessageToAll(ANNOUNCEMENT,ANNOUNCEMENTS[0]); RandMsg++;} // -- This will be the first message
- case 1: {SendClientMessageToAll(ANNOUNCEMENT,ANNOUNCEMENTS[1]); RandMsg++;}
- case 2: {SendClientMessageToAll(LIGHTGREEN,ANNOUNCEMENTS[1]); RandMsg++;}
- case 3: {SendClientMessageToAll(LIGHTGREEN,ANNOUNCEMENTS[1]); RandMsg++;}
- case 4: {SendClientMessageToAll(LIGHTGREEN,ANNOUNCEMENTS[1]); RandMsg++;}
- case 5: {SendClientMessageToAll(RED,ANNOUNCEMENTS[2]); RandMsg = 0;} // -- and This will be the last message
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement