Ко всем new добавляем:
Code: Select all
new Text:HelpDraw;
ко всем forward:
Code: Select all
forward OtherTimer();
Создадим public OtherTimer:
Code: Select all
public OtherTimer()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Colors[] = { 0x00ff0099, 0x5E5A80FF, 0x157DECFF , 0x9E7BFFFF , 0x659EC7FF , 0xF778A1FF , 0x43C6DBFF , 0xC9BE62FF , 0xFBB117FF, 0xC11B17FF, 0xFBBBB9FF };
TextDrawHideForPlayer(i,HelpDraw);
TextDrawColor(HelpDraw,Colors[random(sizeof(Colors))]);
TextDrawShowForPlayer(i,HelpDraw);
SetTimer("TextdrawColorChange", 100, 0);
}
Потом идём в public OnPlayerDisconnect(playerid, reason) и добавляем:
Code: Select all
TextDrawHideForPlayer(playerid, HelpDraw);
Далее идем в public OnGameModeInit() и вставляем туда:
Code: Select all
HelpDraw = TextDrawCreate(499.000000,4.000000," [текст]");
TextDrawAlignment(HelpDraw,0);
TextDrawBackgroundColor(HelpDraw,0x00000066);
TextDrawFont(HelpDraw,3);
TextDrawLetterSize(HelpDraw,0.299999,1.300000);
TextDrawColor(HelpDraw,0xffffffff);
TextDrawSetOutline(HelpDraw,1);
TextDrawSetProportional(HelpDraw,1);
othtimer = SetTimer("OtherTimer", 1000, 1);