Originally Posted by BenzoAMG
Remove this whole thing:
pawn Код:
public pAnnText(playerid) { pann[playerid] = TextDrawCreate(314.000000, 198.000000, " "); TextDrawAlignment(pann[playerid], 2); TextDrawBackgroundColor(pann[playerid], 255); TextDrawFont(pann[playerid], 3); TextDrawLetterSize(pann[playerid], 1.1, 2.400003); TextDrawColor(pann[playerid], -1); TextDrawSetOutline(pann[playerid], 1); TextDrawSetProportional(pann[playerid], 1); }
Example:
pawn Код:
CMD:announce(playerid, params[]) { new string[150]; format(string, sizeof string, "~w~%s", params); TextDrawSetString(ann, string); TextDrawShowForAll(ann); annTextOnScreen = true; return 1; }
CMD:pann(playerid, params[]) { new id, text[120]; if(sscanf(params, "is[120]", id, text)) return SendClientMessage(playerid, -1, "USAGE: /pann [id] [message]"); new string[150]; format(string, sizeof string, "~w~%s", text); TextDrawSetString(ann, string); TextDrawShowForPlayer(id, ann); annTextOnScreen = true; return 1; }
|