21.06.2014, 00:27
Is it possible to have a code that if a player or another admin uses a command it sends it to admins online. If its possible can someone show me an example of it please
CMD:test(playerid, params[])
{
new pname[25], string[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s use /test.", pname);
SendAdminMessage(-1, string);
return 1;
}
stock SendAdminMessage(color, string)
{
for(new i; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 0)
{
SendClientMessage(i, color, string)
}
}
return 1;
}