Admins can see which command player typed?
#8

Mybe this can help you
From PPC trucking :

PHP код:
// SCRIPT BY POWERPC ( PPC TRUCKING )
SendAdminText(playeridcommand[], text[])
{
    
// Setup local variables
    
new Name[24], Msg[128];
    
// Loop through all players
    
for (new iMAX_PLAYERSi++)
    {
        
// Check if the player is an admin
        
if (APlayerData[i][PlayerLevel] > 0///// ADMIN variable Change this with yours
        
{
            
// Get the player's name
            
GetPlayerName(playeridNamesizeof(Name));
            
// Send the given text to the admin
            
format(Msg128"{00FFCC}%s use: %s %s"Namecommandtext);
            
SendClientMessage(i0xFFFFFFFFMsg);
        }
    }
    
// Also log all used commands in the server.log file
    
format(Msg128"%s use: %s %s"Namecommandtext);
    print(
Msg);
}
COMMAND:test(playeridparams[])
{
    
SendAdminText(playerid"/test"params);

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)