25.03.2013, 09:19
I like this, especially the use of y_va, you could log all admin (any, actually) used commands with this !
Example of usage:
Example of usage:
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!IsPlayerAdmin(playerid)) return 1;
new player_name[24]; GetPlayerName(playerid, player_name, sizeof(player_name));
WriteInLog( "LogThis.log", "", "%s used %s !", player_name, cmdtext );
return 1;
}