added a new forward for OnServerActivate

included timers from sourcemod.inc

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40649
This commit is contained in:
David Anderson
2007-03-17 20:25:08 +00:00
parent 3250b1d2b7
commit 88eae4ad1e
4 changed files with 13 additions and 1 deletions
+8
View File
@@ -43,6 +43,7 @@ struct Plugin
#include <usermessages>
#include <events>
#include <functions>
#include <timers>
/**
* Declare this as a struct in your plugin to expose its information.
@@ -104,6 +105,13 @@ forward OnPluginPauseChange(bool:pause);
*/
forward OnGameFrame();
/**
* Called when the map is loaded and configs have been parsed.
* Note that commands are processed per-frame, and thus config
* files may not be fully loaded until a few seconds later.
*/
forward OnServerLoad();
/**
* Returns the calling plugin's Handle.
*
+1 -1
View File
@@ -67,7 +67,7 @@ funcenum Timer
* @param flags Flags to set (such as repeatability or auto-Handle closing).
* @return Handle to the timer object. You do not need to call CloseHandle().
*/
native Handle:CreateTimer(Float:interval, Timer:func, {Handle,_}:value, flags);
native Handle:CreateTimer(Float:interval, Timer:func, {Handle,_}:value, flags=0);
/**
* Kills a timer. Use this instead of CloseHandle() if you need more options.