CMD:help(playerid, params[])
{
//code
Getplayername(playerid)
format(str, sizeof(str), "[CMD][%d][%s]: /help", playerid, playername)
foreach(...)
{
if (playerstats[i][adminlv]>0)
{
SendCLientMessage(i, -1, str)
}
}
return 1;
}
HurtLocker, he means that when someone types and CMD like /me then admins can see it IG, example:
[AdmnReport] Player *playername* *player's id* used CMD *CMD name* |
// SCRIPT BY POWERPC ( PPC TRUCKING )
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] > 0) ///// ADMIN variable Change this with yours
{
// Get the player's name
GetPlayerName(playerid, Name, sizeof(Name));
// Send the given text to the admin
format(Msg, 128, "{00FFCC}%s use: %s %s", Name, command, text);
SendClientMessage(i, 0xFFFFFFFF, Msg);
}
}
// Also log all used commands in the server.log file
format(Msg, 128, "%s use: %s %s", Name, command, text);
print(Msg);
}
COMMAND:test(playerid, params[])
{
SendAdminText(playerid, "/test", params);
}