[Ajuda] Comando nгo surte efeito
#1

Simplesmente, nгo surte efeito:

PHP код:
COMMAND:admins(playeridparams[])
{
    
// Setup local variables
    
new AdminList[500], Name[24];
    
// Send the command to all admins so they can see it
    
SendAdminText(playerid"/admins"params);
    
// Check if the player has logged in
    
if (APlayerData[playerid][LoggedIn] == true)
    {
        
// Scan through all players
        
for (new iMAX_PLAYERSi++)
        {
            
// Check if this player is connected
            
if (IsPlayerConnected(i))
            {
                
// Get the name of the player
                
GetPlayerName(iNamesizeof(Name));
                
// Check if this player is an RCON admin
                
if (IsPlayerAdmin(i))
                {
                    
// Add all admin players to the list
                    
format(AdminList500"%s%s: %s (id: %i), Level de admin: %i (RCON admin)\n"AdminListAdminLevelName[APlayerData[i][PlayerLevel]], NameiAPlayerData[i][PlayerLevel]); // Add the name of the admin-player to the list
                    // Re-start the for loop (skipping the remaining code for this iteration)
                    
continue;
                }
                
//Check if that player is an admin (using the PlayerLevel)
                
if (APlayerData[i][PlayerLevel] > 0)
                {
                    
// Add all admin players to the list
                    
format(AdminList500"%s%s: %s (id: %i), Level de admin: %i\n"AdminListAdminLevelName[APlayerData[i][PlayerLevel]], NameiAPlayerData[i][PlayerLevel]); // Add the name of the admin-player to the list
                
}
            }
        }
        
// Check if there were admin-names added to the list
        
if (strlen(AdminList) > 0)
            
ShowPlayerDialog(playeridDialogNoResponseDIALOG_STYLE_LIST"Admins Online:"AdminList"OK""Cancelar");
        else
            
SendClientMessage(playerid0xFF0000FF"[ Thunder Truck ]: Administraзгo Indisponнvel no momento!"); // No admins are online
    
}
    else
        return 
0;
    
// Let the server know that this was a valid command
    
return 1;

O que pode ser?
Reply


Messages In This Thread
Comando nгo surte efeito - by duuuwh - 04.03.2013, 05:17
Re: Comando nгo surte efeito - by mau.tito - 04.03.2013, 08:43
Re: Comando nгo surte efeito - by duuuwh - 04.03.2013, 14:29
Re: Comando nгo surte efeito - by feliphemort - 04.03.2013, 19:45

Forum Jump:


Users browsing this thread: 2 Guest(s)