How to change a textdraw's text with a command?
#2

pawn Код:
COMMAND:setdraw(playerid, params[])
{
    new string[128];
    new text;
    if(sscanf(params, "s[128]", text)) SendClientMessage(playerid, 0xFF0000FF, "[USAGE]: /setdraw [input]");
    else
    {
        TextDrawSetString(Textdraw2, string);
        SendClientMessageToAll(0xFF0000FF, string);
    }
    return 1;
}
The command compiles fine but not tested it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)