#define Light_Blue 0x00CCFF #define White 0xFFFFFF #define Gray 0x222222BB
forward MSG();
new Text:ServerMSG;
new RMessages[][] =
{
"~y~Random News: ~w~Random Text Here",
"~y~Random News: ~w~Random Text Here",
"~y~Random News: ~w~Random Text Here",
"~y~Random News: ~w~Random Text Here",
"~y~Random News: ~w~Random Text Here"
};
SetTimer("MSG", 8000, true);
ServerMSG = TextDrawCreate(2.000000, 428.000000, "[ Server MSG");
TextDrawColor(ServerMSG, Light_Blue);
TextDrawFont(ServerMSG, 1);
TextDrawLetterSize(ServerMSG, 0.400000, 0.800000);
SetTimer("MSG", 8000, true);
ServerMSG = TextDrawCreate(2.000000, 428.000000, "[ Server MSG");
TextDrawColor(ServerMSG, Light_Blue); TextDrawFont(ServerMSG, 1); TextDrawLetterSize(ServerMSG, 0.400000, 0.800000);
public MSG()
{
TextDrawSetString(ServerMSG, RMessages[random(sizeof(RMessages))]);
return 1;
}
TextDrawSetString(ServerMSG, RMessages[random(sizeof(RMessages))]);
public OnPlayerSpawn(playerid)
TextDrawShowForPlayer(playerid, ServerMSG);
|
Whats '[ server'? ik whats MSG but whats that? |
|
Your code will annoy players for show the textdraw all the time. You added TextdrawShowForPlayer, and without Hiding it with a timer? Just advising. |
!