1.1 --- a/plugins/include/helpers.inc Fri Jun 08 04:40:40 2007 +0000
1.2 +++ b/plugins/include/helpers.inc Fri Jun 08 05:11:49 2007 +0000
1.3 @@ -21,11 +21,30 @@
1.4 /**
1.5 * Provided by basecommands.sp when sm_ban is called.
1.6 *
1.7 - * @param admin Admin client index.
1.8 + * @param admin Admin client index (0 for server).
1.9 * @param client Client index which will be banned.
1.10 + * @param time Minutes banned for (0 is permanent).
1.11 * @param reason Ban reason (may be empty if none exists).
1.12 */
1.13 -forward OnClientBanned(admin, client, const String:reason[]);
1.14 +forward OnClientBanned(admin, client, time, const String:reason[]);
1.15 +
1.16 +/**
1.17 + * Provided by basecommands.sp when sm_addban or sm_banip is called.
1.18 + *
1.19 + * @param admin Admin client index (0 for server).
1.20 + * @param info User info (either steamid or ip).
1.21 + * @param time Minutes banned for (0 is permanent).
1.22 + * @param reason Ban reason (may be empty if none exists).
1.23 + */
1.24 +forward OnBanAdded(admin, const String:info[], time, const String:reason[]);
1.25 +
1.26 +/**
1.27 + * Provided by basecommands.sp when sm_unban or sm_unbanip is called.
1.28 + *
1.29 + * @param admin Admin client index (0 for server).
1.30 + * @param info User info (either steamid or ip).
1.31 + */
1.32 +forward OnBanRemoved(admin, const String:info[]);
1.33
1.34 /**
1.35 * Formats a user's info as log text.