SA-MP Forums Archive
/logs command. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /logs command. (/showthread.php?tid=432047)



/logs command. - Lambordi - 20.04.2013

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


Re: /logs command. - Lambordi - 21.04.2013

bump.


Re: /logs command. - Lambordi - 22.04.2013

could use some help here lol


Re: /logs command. - ryanhawk31 - 22.04.2013

Try something like this:
i dont know if it work but make a command that opens the server_log.txt

Код:
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!");
    }
}