plugins/include/sourcemod.inc
changeset 1914 0751a6430f15
parent 1869 49274af1f67c
child 1925 61d7a244b641
     1.1 --- a/plugins/include/sourcemod.inc	Sun Mar 02 18:18:42 2008 +0000
     1.2 +++ b/plugins/include/sourcemod.inc	Sun Mar 02 19:08:27 2008 +0000
     1.3 @@ -54,6 +54,7 @@
     1.4  #include <handles>
     1.5  #include <functions>
     1.6  #include <files>
     1.7 +#include <logging>
     1.8  #include <timers>
     1.9  #include <admin>
    1.10  #include <dbi>
    1.11 @@ -92,6 +93,10 @@
    1.12   * If any run-time error is thrown during this callback, the plugin will be marked 
    1.13   * as failed.
    1.14   *
    1.15 + * It is not necessary to close any handles or remove hooks in this function.  
    1.16 + * SourceMod guarantees that plugin shutdown automatically and correctly releases 
    1.17 + * all resources.
    1.18 + *
    1.19   * @noreturn
    1.20   */
    1.21  forward OnPluginStart();
    1.22 @@ -177,26 +182,6 @@
    1.23  forward OnAllPluginsLoaded();
    1.24  
    1.25  /**
    1.26 - * Called when an action is going to be logged.
    1.27 - *
    1.28 - * @param source		Handle to the object logging the action, or INVALID_HANDLE 
    1.29 - *						if Core is logging the action.
    1.30 - * @param ident			Type of object logging the action (plugin, ext, or core).
    1.31 - * @param client		Client the action is from; 0 for server, -1 if not applicable.
    1.32 - * @param target		Client the action is targetting, or -1 if not applicable.
    1.33 - * @param message		Message that is being logged.
    1.34 - * @return				Plugin_Continue will cause Core to defaulty log the message.
    1.35 - *						Plugin_Handled will stop Core from logging the message.
    1.36 - * 						Plugin_Stop is the same as Handled, but prevents any other 
    1.37 - *						plugins from handling the message.
    1.38 - */
    1.39 -forward Action:OnLogAction(Handle:source, 
    1.40 -						   Identity:ident,
    1.41 -						   client,
    1.42 -						   target,
    1.43 -						   const String:message[]);
    1.44 -
    1.45 -/**
    1.46   * Returns the calling plugin's Handle.
    1.47   *
    1.48   * @return				Handle of the calling plugin.
    1.49 @@ -316,72 +301,6 @@
    1.50  native ThrowError(const String:fmt[], any:...);
    1.51  
    1.52  /**
    1.53 - * Logs a plugin message to the SourceMod logs.  The log message will be 
    1.54 - * prefixed by the plugin's logtag (filename).
    1.55 - *
    1.56 - * @param format		String format.
    1.57 - * @param ...			Format arguments.
    1.58 - * @noreturn
    1.59 - */
    1.60 -native LogMessage(const String:format[], any:...);
    1.61 -
    1.62 -/**
    1.63 - * Logs a message to the SourceMod logs without any plugin logtag.  This is 
    1.64 - * useful for re-routing messages from other plugins, for example, messages 
    1.65 - * from LogAction().
    1.66 - *
    1.67 - * @param format		String format.
    1.68 - * @param ...			Format arguments.
    1.69 - * @noreturn
    1.70 - */
    1.71 -native LogMessageEx(const String:format[], any:...);
    1.72 -
    1.73 -/**
    1.74 - * Logs a message to any file.  The log message will be in the normal 
    1.75 - * SourceMod format, with the plugin logtag prepended.
    1.76 - *
    1.77 - * @param file			File to write the log message in.
    1.78 - * @param format		String format.
    1.79 - * @param ...			Format arguments.
    1.80 - * @noreturn
    1.81 - * @error				File could not be opened/written.
    1.82 - */
    1.83 -native LogToFile(const String:file[], const String:format[], any:...);
    1.84 -
    1.85 -/**
    1.86 - * Same as LogToFile(), except no plugin logtag is prepended.
    1.87 - *
    1.88 - * @param file			File to write the log message in.
    1.89 - * @param format		String format.
    1.90 - * @param ...			Format arguments.
    1.91 - * @noreturn
    1.92 - * @error				File could not be opened/written.
    1.93 - */
    1.94 -native LogToFileEx(const String:file[], const String:format[], any:...);
    1.95 -
    1.96 -/**
    1.97 - * Logs an action from a command or event whereby interception and routing may 
    1.98 - * be important.  This is intended to be a logging version of ShowActivity().
    1.99 - *
   1.100 - * @param client		Client performing the action, 0 for server, or -1 if not 
   1.101 - *						applicable.
   1.102 - * @param target		Client being targetted, or -1 if not applicable.
   1.103 - * @param message		Message format.
   1.104 - * @param ...			Message formatting parameters.
   1.105 - * @noreturn
   1.106 - */
   1.107 -native LogAction(client, target, const String:message[], any:...);
   1.108 -
   1.109 -/**
   1.110 - * Logs a plugin error message to the SourceMod logs.
   1.111 - *
   1.112 - * @param format		String format.
   1.113 - * @param ...			Format arguments.
   1.114 - * @noreturn
   1.115 - */
   1.116 -native LogError(const String:format[], any:...);
   1.117 -
   1.118 -/**
   1.119   * Gets the system time as a unix timestamp.
   1.120   *
   1.121   * @param bigStamp		Optional array to store the 64bit timestamp in.