31.03.2015, 20:17
You first need to hire trustable and respectable admins. You can obviously log: every command they use, what they say in OnPlayerText, etc. Example(assuming you use zcmd):
But as KingHaul and Mauzen said you don't need to be hiring everyone that asks, or people that aren't fit / are just power hungry.
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(PlayerData[playerid][pAdmin] >= 1)
{
new string[64];
new Year, Month, Day;
getdate(Year, Month, Day);
format(string, sizeof(string), "adminlogs/%02d/%02d/%d.log");
new File:handle = fopen(string, io_write);
if(handle)
{
new string_large[256];
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
format(string_large, sizeof(string_large), "[ADMIN COMMAND]: %s(%d) - %s", playerName, playerid, cmdtext);
fwrite(handle, string_large);
fclose(handle);
}
else
{
print("Failed to open file \"file.txt\".");
}
}
return 1;
}