14.06.2011, 14:57
Hey guys. I want to have the text from announce2 to stay in the middle.
So when I do /ann hello my name is bart,
it remains in the middle.
My command is this:
So when I do /ann hello my name is bart,
it remains in the middle.
My command is this:
pawn Код:
COMMAND:ann(playerid,params[])
{
new text[100];
if(PlayerInfo[playerid][pAdminLevel] <1) return SendClientMessage(playerid,COLOR_RED,"You're not allowed to use this");
if(sscanf(params,"s",text)) return SendClientMessage(playerid,COLOR_GREY,"USAGE:/ann [text]");
TextDrawShowForAll(announce1);
format(String,sizeof(String),"%s",text);
TextDrawSetString(announce2, text);
TextDrawShowForAll(announce2);
return 1;
}