added another unban command and added forwards for banning (amb369)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40933
This commit is contained in:
David Anderson
2007-06-08 05:11:49 +00:00
parent 48830e2c16
commit 706b28cb64
3 changed files with 115 additions and 3 deletions
+21 -2
View File
@@ -21,11 +21,30 @@
/**
* Provided by basecommands.sp when sm_ban is called.
*
* @param admin Admin client index.
* @param admin Admin client index (0 for server).
* @param client Client index which will be banned.
* @param time Minutes banned for (0 is permanent).
* @param reason Ban reason (may be empty if none exists).
*/
forward OnClientBanned(admin, client, const String:reason[]);
forward OnClientBanned(admin, client, time, const String:reason[]);
/**
* Provided by basecommands.sp when sm_addban or sm_banip is called.
*
* @param admin Admin client index (0 for server).
* @param info User info (either steamid or ip).
* @param time Minutes banned for (0 is permanent).
* @param reason Ban reason (may be empty if none exists).
*/
forward OnBanAdded(admin, const String:info[], time, const String:reason[]);
/**
* Provided by basecommands.sp when sm_unban or sm_unbanip is called.
*
* @param admin Admin client index (0 for server).
* @param info User info (either steamid or ip).
*/
forward OnBanRemoved(admin, const String:info[]);
/**
* Formats a user's info as log text.