10.02.2015, 04:57
When someone sends a private message to someone else, send it to administrators too.
Example:
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
}
}