Admins PM
#6

When someone sends a private message to someone else, send it to administrators too.
Example:
pawn Код:
new string[128]; // Defines the string we are gonna use
for(new i = 0; i < MAX_PLAYERS; i++) // Loops through all players and defines them as "i"
{
    if(IsPlayerConnected && IsPlayerAdmin(i)) // If "i" is an RCON admin and is connected it sends the message below
    {
        format(string, sizeof(string), "(PM) %s > %s: %s"); // Formats the string
        SendClientMessage(i, -1, string); // Sends the string message to the admin
    }
}
Reply


Messages In This Thread
Admins PM - by Thoma - 09.02.2015, 19:13
Re: Admins PM - by HazardouS - 09.02.2015, 19:21
Re: Admins PM - by Sascha - 09.02.2015, 19:29
Re: Admins PM - by Thoma - 09.02.2015, 19:32
Re: Admins PM - by Sascha - 09.02.2015, 19:37
Re: Admins PM - by CalvinC - 10.02.2015, 04:57

Forum Jump:


Users browsing this thread: 1 Guest(s)