Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- forward MSG();
- #define Light_Blue 0x00CCFF
- #define White 0xFFFFFF
- #define Gray 0x222222BB
- new Text:ServerMSG;
- new RMessages[][] =
- {
- "~r~ [ ~b~Server MSG: ~g~Random Text Here. ~r~ ]",
- "~r~ [ ~b~Server MSG: ~g~Random Text Here. ~r~ ]",
- "~r~ [ ~b~Server MSG: ~g~Random Text Here. ~r~ ]",
- "~r~ [ ~b~Server MSG: ~g~Random Text Here. ~r~ ]",
- "~r~ [ ~b~Server MSG: ~g~Random Text Here. ~r~ ]"
- };
- public OnFilterScriptInit()
- {
- print("Server MSG v1.0");
- SetTimer("MSG", 8000, true);
- ServerMSG = TextDrawCreate(1.000000, 428.000000, "[ Server MSG");
- TextDrawColor(ServerMSG, Light_Blue);
- TextDrawFont(ServerMSG, 1);
- TextDrawLetterSize(ServerMSG, 0.500000, 2.000000);
- TextDrawSetProportional(ServerMSG, 1);
- TextDrawSetOutline(ServerMSG, 1);
- TextDrawSetShadow(ServerMSG, 2);
- TextDrawBackgroundColor(ServerMSG, White);
- TextDrawUseBox(ServerMSG, 1);
- TextDrawBoxColor(ServerMSG, Gray);
- TextDrawTextSize(ServerMSG, 643.0000, 1.000000);
- }
- public MSG()
- {
- TextDrawSetString(ServerMSG, RMessages[random(sizeof(RMessages))]);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, ServerMSG);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment