- added amb379

- fixed a format bug in basecommands.sp
- added an any tag to Call_Finish()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40988
This commit is contained in:
David Anderson
2007-06-18 17:20:12 +00:00
parent 5dbcd90895
commit 7c63139574
3 changed files with 86 additions and 53 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ native Call_PushStringEx(String:value[], length, szflags, cpflags);
* @return SP_ERROR_NONE on success, any other integer on failure.
* @error Called before a call has been started.
*/
native Call_Finish(&result=0);
native Call_Finish(&any:result=0);
/**
* Cancels a call to a function or forward's call list.
+9 -4
View File
@@ -25,8 +25,9 @@
* @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).
* @return Pl_Handled to block output, Pl_Stop to block output and action.
*/
forward OnClientBanned(admin, client, time, const String:reason[]);
forward Action:OnClientBanned(admin, client, time, const String:reason[]);
/**
* Provided by basecommands.sp when sm_addban or sm_banip is called.
@@ -35,19 +36,22 @@ forward OnClientBanned(admin, client, time, const String:reason[]);
* @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).
* @return Pl_Handled to block output, Pl_Stop to block output and action.
*/
forward OnBanAdded(admin, const String:info[], time, const String:reason[]);
forward Action: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).
* @return Pl_Handled to block output, Pl_Stop to block output and action.
*/
forward OnBanRemoved(admin, const String:info[]);
forward Action:OnBanRemoved(admin, const String:info[]);
/**
* Formats a user's info as log text.
* Formats a user's info as log text. This is usually not needed because
* %L can be used to auto-format client information into a string.
*
* @param client Client index.
* @param buffer Buffer for text.
@@ -93,6 +97,7 @@ stock Handle:FindPluginByFile(const String:filename[])
GetPluginFilename(pl, buffer, sizeof(buffer));
if (StrCompare(buffer, filename) == 0)
{
CloseHandle(iter);
return pl;
}
}