[Ajuda] SendClientMessage
#5

Tenta agora

PHP код:
COMMAND:relatos(playeridparams[])
{
    
// 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
        {
            
// Add the first report to the list (if it exists)
            
if (AReports[0][ReportUsed] == true)
                
format(ReportList5000"%s: %s\n"AReports[0][ReportName], AReports[0][ReportReason]);

            
// Construct the report-dialog
            
for (new 150i++)
            {
                
// Check if the ReportID has been used already
                
if (AReports[i][ReportUsed] == true)
                {
                    
format(ReportList5000"%s%s: %s\n"ReportListAReports[i][ReportName], AReports[i]

[
ReportReason]);
                }
            }

            
// Show all the reports
            
ShowPlayerDialog(playeridDialogReportsDIALOG_STYLE_LIST"Lista de Relatos:"ReportList"Ok",

"Cancelar");
        }
        else
            return 
SendClientMessage(playerid, -1"{FF0000}Vocк nгo й administrador");;
    }
    else
        return 
0;

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

Nгo se abre chaves depois do return!
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: 1 Guest(s)