24.06.2011, 23:41
how i can create this
native TextDrawMove(Text:text, Float, Float:y, Floatpeed);
native TextDrawMove(Text:text, Float, Float:y, Floatpeed);
TextDrawMove(Text:text, Float:x, Float:y, Float:speed);
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;
}
This is a pretty easy function to make. The link in the above topic has the general idea of how to do it.
pawn Код:
|