How to log command usages
#3

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
        if(success) 
        {
                new name[32];
                GetPlayerName(playerid, name, 32);
                printf("%s performed command %s", name, cmdtext);
                return 1;
        }
        return 1;
}
Put this somewhere in the end. Easier than what the guy above posted.
Reply


Messages In This Thread
How to log command usages - by Tamer - 06.01.2013, 10:26
Re: How to log command usages - by park4bmx - 06.01.2013, 10:36
Re: How to log command usages - by eesh - 06.01.2013, 10:53
Re: How to log command usages - by park4bmx - 06.01.2013, 10:56
Re: How to log command usages - by eesh - 06.01.2013, 10:59
Re: How to log command usages - by Tamer - 06.01.2013, 11:04
Re: How to log command usages - by Mr.Anonymous - 06.01.2013, 11:07
Re: How to log command usages - by Tamer - 06.01.2013, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)