1.1 --- a/plugins/include/console.inc Thu Sep 18 18:42:13 2008 +1200
1.2 +++ b/plugins/include/console.inc Tue Sep 23 01:17:15 2008 -0500
1.3 @@ -287,6 +287,24 @@
1.4 native ShowActivityEx(client, const String:tag[], const String:format[], any:...);
1.5
1.6 /**
1.7 + * Given an originating client and a target client, returns the string
1.8 + * that describes the originating client according to the sm_show_activity cvar.
1.9 + *
1.10 + * For example, "ADMIN", "PLAYER", or a player's name could be placed in this buffer.
1.11 + *
1.12 + * @param client Originating client; may be 0 for server console.
1.13 + * @param target Targeted client.
1.14 + * @param namebuf Name buffer.
1.15 + * @param maxlength Maximum size of the name buffer.
1.16 + * @return True if activity should be shown. False otherwise. In either
1.17 + * case, the name buffer is filled. The return value can be used
1.18 + * to broadcast a "safe" name to all players regardless of the
1.19 + * sm_show_activity filters.
1.20 + * @error Invalid client index or client not connected.
1.21 + */
1.22 +native FormatActivitySource(client, target, const String:namebuf[], maxlength);
1.23 +
1.24 +/**
1.25 * Called when a server-only command is invoked.
1.26 *
1.27 * @params args Number of arguments that were in the argument string.