20.04.2013, 21:37
Hello, would anyone help me make a /logs command, which would display the last 50 lines or so of the server logs, so I can view them in game?
Thanks
Using zCMD
Thanks
Using zCMD
CMD:log(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 1 { new string[31]; SendClientMessage(playerid, COLOR_LIGHTBLUE,"You are vieweing the server log"); format(string, sizeof(string), "server_log.txt"); } else if { SendClientMessage(playerid, COLOR_LIGHTBLUE,"Only admins can use this command!"); } }