[Ajuda] Como Criar o /cnn ? :p
#3

Pegue esse codigo e estudeo e Com base no que o Willian Disse
pawn Код:
if(IsPlayerConnected(playerid))
        {
                new string[500];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                }
                result[idx - offset] = EOS;
                if(!strlen(result))
                {
                    SendClientMessage(playerid, COLOR_RED, "USE: /cnn [texto]");
                    SendClientMessage(playerid, COLOR_WHITE, "~p~ (Roxo); ~r~ (Vermelho); ~b~ (Azul); ~g~ (Verde); ~b~ (Preto) e ~y~ (Amarelo).");
                    return 1;
                }
                format(string, sizeof(string), "~r~%s: ~w~%s",sendername,result);
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i))
                    {
                        GameTextForPlayer(i, string, 5000, 6);
                    }
                }
                return 1;
            }
        return 1;
    }
Reply


Messages In This Thread
Como Criar o /cnn ? :p - by N3XTMapper - 22.11.2013, 18:21
Re: Como Criar o /cnn ? :p - by WLSF - 22.11.2013, 18:42
Re: Como Criar o /cnn ? :p - by Krisky_ - 22.11.2013, 18:46
Re: Como Criar o /cnn ? :p - by N3XTMapper - 22.11.2013, 19:29
Re: Como Criar o /cnn ? :p - by Diogo123 - 22.11.2013, 23:01
Re: Como Criar o /cnn ? :p - by N3XTMapper - 23.11.2013, 18:48

Forum Jump:


Users browsing this thread: 1 Guest(s)