In this instance, the correct usage is
OnConfigsExecuted. While you could use OnMapStart, any changes in the config file wouldn't be reflected until the next map. (You could cache the variable and hook changes, then it would be valid).
Quote:
Originally Posted by Powerlord
PHP Code:
APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max); OnPluginStart(); OnAllPluginsLoaded();
do { OnMapStart(); OnAutoConfigsBuffered(); // Except on late load OnConfigsExecuted();
do { OnGameFrame(); } until (mapEnd);
OnMapEnd(); } while (running);
OnPluginEnd();
|
__________________