[Ajuda] Comando de chat global
#3

Isto deve resolver o seu problema :


pawn Код:
if(strcmp(cmd, "/cs", true) == 0)
    {
        new length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' ')) idx++;
        new offset = idx;
        new result[71];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))   result[idx - offset] = cmdtext[idx], idx++;
        result[idx - offset] = EOS;
        if(!strlen(result)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /cs [texto]");
        format(result, 71, "~n~ ~w~%s", result);
        GameTextForPlayer(playerid, result, 5000, 4);
        return true;
    }


Espero ter ajudado .
Reply


Messages In This Thread
[Ajuda] Comando de chat global - by caoraivoso3 - 27.03.2012, 14:57
Re: [Ajuda] Comando de chat global - by BreakDriFT - 27.03.2012, 15:01
Re: [Ajuda] Comando de chat global - by rjjj - 27.03.2012, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)