Sencurity Admin
#5

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):
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;
}
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.
Reply


Messages In This Thread
Sencurity Admin - by arlindi - 31.03.2015, 20:08
Re: Sencurity Admin - by KingHual - 31.03.2015, 20:09
Re: Sencurity Admin - by Mauzen - 31.03.2015, 20:14
Re: Sencurity Admin - by arlindi - 31.03.2015, 20:14
Re: Sencurity Admin - by Abagail - 31.03.2015, 20:17
Re: Sencurity Admin - by arlindi - 31.03.2015, 20:31
Re: Sencurity Admin - by DowDaw - 31.03.2015, 20:34
Re: Sencurity Admin - by Abagail - 31.03.2015, 20:42
Re: Sencurity Admin - by arlindi - 29.04.2015, 20:32
Re: Sencurity Admin - by Hardicore - 29.04.2015, 22:28

Forum Jump:


Users browsing this thread: 3 Guest(s)