Problems
#3

Put this in OnGameModeInit:
pawn Код:
public AnnText()
{
    ann = TextDrawCreate(314.000000, 198.000000, " ");
    TextDrawAlignment(ann, 2);
    TextDrawBackgroundColor(ann, 255);
    TextDrawFont(ann, 3);
    TextDrawLetterSize(ann, 1.1, 2.400003);
    TextDrawColor(ann, -1);
    TextDrawSetOutline(ann, 1);
    TextDrawSetProportional(ann, 1);
}
pawn Код:
CMD:announce(playerid, params[])
{
    new string[150];
    format(string, sizeof string, "~w~%s", text);
    TextDrawSetString(ann, string);
    TextDrawShowForAll(ann);
    annTextOnScreen = true;
    return 1;
}
Then, instead of using TextDrawDestroy to hide the announcement from players, use TextDrawHideForAll.
Reply


Messages In This Thread
Problems - by Ananisiki - 17.05.2014, 18:14
Re: Problems - by Ananisiki - 17.05.2014, 18:18
Re: Problems - by Threshold - 17.05.2014, 23:33
Re: Problems - by Ananisiki - 17.05.2014, 23:53
Re: Problems - by Threshold - 18.05.2014, 00:22
Re: Problems - by Ananisiki - 18.05.2014, 00:23
Re: Problems - by Threshold - 18.05.2014, 00:28
Re: Problems - by Ananisiki - 18.05.2014, 00:37
Re: Problems - by gekas - 18.05.2014, 18:37
Re: Problems - by Ananisiki - 18.05.2014, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)