SA-MP Forums Archive
[Ajuda] Ajude-me. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ajude-me. (/showthread.php?tid=511330)



Ajude-me. - ElGringo - 05.05.2014

pawn Код:
COMMAND:ao(playerid, params[])
{
    new Name[24], Msg[128], Message[128];
    SendAdminText(playerid, "/ao", params);
    GetPlayerName(playerid, Name, sizeof(Name));
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (APlayerData[playerid][PlayerLevel] > 3)
        {
            if (sscanf(params, "s[128]", Message)) SendClientMessage(playerid, 0xFF0000AA, "Use: /ao [texto]");
            else
            {
                for (new i; i < MAX_PLAYERS; i++)
                {
                    if (APlayerData[i][LoggedIn] == true)
                    {
                        if (APlayerData[i][PlayerLevel] > 3)
                        {
                            format(Msg, sizeof(Msg), "~w~%s", Message);
                            GameTextForAll(Msg, 5000, 3);
                        }
                    }
                }
            }
        }
        else
            return 0;
    }
    else
        return 0;
    return 1;
}
Esse Comando nao mostra qual adm que enviou a mensagem , alguem me ajuda ?