[HELP] How to make commands log
#3

Basically the exact same way as you log OnPlayerText

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	new name[MAX_PLAYER_NAME];
	new string[128];
	GetPlayerName(playerid,name,sizeof(name));
	format(string,sizeof(string),"%s: %s",name,cmdtext);
	WriteLog(Command,string);
}
Reply


Messages In This Thread
[HELP] How to make commands log - by makogemata - 11.11.2009, 15:09
Re: [HELP] How to make commands log - by makogemata - 11.11.2009, 16:13
Re: [HELP] How to make commands log - by bigcomfycouch - 11.11.2009, 18:12
Re: [HELP] How to make commands log - by makogemata - 11.11.2009, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)