[Ajuda] SendClientMessage
#4

Nгo deu certo juniiro
O comando completo й esse:
pawn Код:
COMMAND:relatos(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/relatos", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 1
        if (APlayerData[playerid][PlayerLevel] < 2) return SendClientMessage(playerid, -1, "{FF0000}Vocк nгo й administrador");
        {
            // Add the first report to the list (if it exists)
            if (AReports[0][ReportUsed] == true)
                format(ReportList, 5000, "%s: %s\n", AReports[0][ReportName], AReports[0][ReportReason]);

            // Construct the report-dialog
            for (new i = 1; i < 50; i++)
            {
                // Check if the ReportID has been used already
                if (AReports[i][ReportUsed] == true)
                {
                    format(ReportList, 5000, "%s%s: %s\n", ReportList, AReports[i][ReportName], AReports[i]

[ReportReason]);
                }
            }

            // Show all the reports
            ShowPlayerDialog(playerid, DialogReports, DIALOG_STYLE_LIST, "Lista de Relatos:", ReportList, "Ok",

"Cancelar");
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
Reply


Messages In This Thread
SendClientMessage - by ThiagoMK - 05.09.2013, 17:51
Re: SendClientMessage - by Russo66 - 05.09.2013, 17:53
Re: SendClientMessage - by Juniiro3 - 05.09.2013, 18:21
Re : SendClientMessage - by ThiagoMK - 05.09.2013, 18:38
Re: SendClientMessage - by Juniiro3 - 05.09.2013, 18:40
Re : SendClientMessage - by ThiagoMK - 05.09.2013, 18:53
Re: Re : SendClientMessage - by Coe1 - 05.09.2013, 19:04
Re : Re: Re : SendClientMessage - by ThiagoMK - 05.09.2013, 19:11
Re: SendClientMessage - by Juniiro3 - 05.09.2013, 23:54
Re : Re: SendClientMessage - by ThiagoMK - 06.09.2013, 00:00

Forum Jump:


Users browsing this thread: 3 Guest(s)