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

Quote:
Originally Posted by Colossus_
Посмотреть сообщение
Using my idea..
Cool, its not just you that wants it!

Besides don't make crap and say that this is your IDEA, it isn't this isnt your topic and you didn't even give me the idea. Stop claiming that this is your 'IDEA'

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
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 .
You could Hook some variables into the function to gather its information, COLOR etc.. That way you don't need so many parameters....
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)