Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define MESSAGE_TIME 3600000
- new Text:RMText;
- new ServerMessage[3][] = {
- "Our first server message.",
- "Party Rock is in the house tonight!",
- "Awwwwwwwwwwwwwww Yeah!"
- };
- forward ShowMessage();
- forward HideMessage();
- public OnFilterScriptInit() {
- SetTimer("ShowMessage", MESSAGE_TIME, true);
- return 1;
- }
- public ShowMessage() {
- new RandomMessage = random(sizeof(ServerMessage));
- RMText = TextDrawCreate(10.0, 100.0, ServerMessage[RandomMessage]);
- TextDrawFont(RMText, 2);
- TextDrawColor(RMText, 0x85D0FFAA);
- TextDrawSetOutline(RMText, 1);
- TextDrawAlignment(RMText, 1);
- TextDrawShowForAll(RMText);
- SetTimer("HideMessage", 3000, false);
- }
- public HideMessage() {
- TextDrawHideForAll(RMText);
- }
Advertisement
Add Comment
Please, Sign In to add comment