How to create a Textdraw /ad
#2

Post the TextDrawCreate "string" for that bar.

Err, just try this(Modify it to fit your system):
pawn Код:
CMD:ad(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "Usage: /Ad < Message >");

    new
        iStr[80],
        iName[MAX_PLAYER_NAME];

    GetPlayerName(playerid, iName, sizeof(iName));

    format(iStr, sizeof(iStr), "%s - %s", iName, params); // Will show like: "PlayerName - Selling a car"
    TextDrawSetString(Textdraw7, iStr);
    TextDrawShowForAll(Textdraw7); // Comment if you are already showing the textdraw
    return 1;
}
Reply


Messages In This Thread
How to create a Textdraw /ad - by Ehab1911 - 29.09.2011, 21:56
Re: How to create a Textdraw /ad - by [L3th4l] - 29.09.2011, 22:19
Re: How to create a Textdraw /ad - by Ehab1911 - 29.09.2011, 22:21
Re: How to create a Textdraw /ad - by Ehab1911 - 29.09.2011, 22:29
Re: How to create a Textdraw /ad - by Ehab1911 - 29.09.2011, 22:36
Re: How to create a Textdraw /ad - by [L3th4l] - 29.09.2011, 22:43
Re: How to create a Textdraw /ad - by Ehab1911 - 29.09.2011, 23:43

Forum Jump:


Users browsing this thread: 2 Guest(s)