21.06.2012, 05:16
Try this
Put this under OnGameModeInit callback
pawn Код:
forward TextTime(playerid);
CMD:text(playerid,params[])
{
if(!IsAdmin(playerid, 1)) return ErrorMsg(playerid);
new announce[41];
if(sscanf(params, "s", announce)) return Usage(playerid, "/text [message]");
format(announce, sizeof(announce), "%s", announce);
TextDrawSetString(Texti, announce);
TextDrawShowForPlayer(playerid, Texti);
SetTimer("TextTime",4000,false);
return 1;}
public TextTime(playerid)
{
TextDrawHideForPlayer(playerid, Texti);
}
pawn Код:
Texti = TextDrawCreate(322.000000, 135.000000, "message");
TextDrawAlignment(Texti, 2);
TextDrawBackgroundColor(Texti, 255);
TextDrawFont(Texti, 3);
TextDrawLetterSize(Texti, 0.670000, 3.099998);
TextDrawColor(Texti, -1);
TextDrawSetOutline(Texti, 1);
TextDrawSetProportional(Texti, 1);