2.
#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] ={
\"Udvozollek a szerverunkon!\",
\"Koszonom IXT\",
\"Jofej vagy IXT\",
\"Te vagy a legszebb\", // Ide ird az üziket
\"Koszi meg1x\",
\"szivesen\"
};
public OnFilterScriptInit()
{
RandMsg = 0;
SetTimer(\"GlobalAnnouncement\" ,120000,true); // Itt változtathatod meg hogy milyen
idõközönként irja ki 1000 = 1 másodperc
return 1;
}
forward GlobalAnnouncement();
public GlobalAnnouncement()
{
switch (RandMsg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT,ANNOUNCEMENTS[0]); RandMsg++;} // elsõ
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;} // Utolsó üzi
}
return 1;
}