TextDrawMove(Text:text, Float:x, Float:y, Float:speed);
#6

This is a pretty easy function to make. The link in the above topic has the general idea of how to do it.

pawn Код:
public OnGameModeInit()
{
    TD = TextDrawCreate(100.0, 100.0, "This is a moving text");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/movetext", cmdtext, true, 10) == 0)
    {
        TextDrawMove(TD, 101.00, 102.00, "This is a moving Text");
        return 1;
    }
    return 0;
}

stock TextDrawMove(Text:textid, Float:xpos, Float:ypos, text[])
{
    TextDrawDestroy(textid);
    textid = TextDrawCreate(xpos, ypos, text);
    return 1;
}
You always have the issue of re-adding the effects E.g. the colour and shadows etc. If you where just using this for 1-2 textdraws, it would be fine .
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)