textdraw in middle
#1

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:

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;
}
Reply


Messages In This Thread
textdraw in middle - by bartje01 - 14.06.2011, 14:57
Re: textdraw in middle - by 0ne - 14.06.2011, 14:58
Re: textdraw in middle - by bartje01 - 14.06.2011, 15:04
Re: textdraw in middle - by bartje01 - 14.06.2011, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)