Not showing
#2

pawn Код:
SendAdminText(playerid, command[], text[])
{
    // Setup local variables
    new Name[24], Msg[128];

    // Loop through all players
    for (new i; i < MAX_PLAYERS; i++)
    {
        // Check if the player is an admin
        if (APlayerData[i][PlayerLevel] >= 7)
        {
            // Get the player's name
            GetPlayerName(playerid, Name, sizeof(Name));
            // Send the given text to the admin
            format(Msg, 128, "{C9C9C9}%s used: %s %s", Name, command, text);
            SendClientMessage(i, 0xFFFFFFFF, Msg);
        }
    }

    // Also log all used commands in the server.log file
    format(Msg, 128, "%s used: %s %s", Name, command, text);
    print(Msg);
}
Try this.
Reply


Messages In This Thread
Not showing - by DerickClark - 10.05.2013, 01:55
Re: Not showing - by NathNathii - 10.05.2013, 02:03
Re: Not showing - by horsemeat - 10.05.2013, 02:04
Re: Not showing - by DerickClark - 10.05.2013, 02:12
Re: Not showing - by horsemeat - 10.05.2013, 02:21

Forum Jump:


Users browsing this thread: 1 Guest(s)