Thread: Kill Messages
View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 02-13-2011 , 15:54   Re: Kill Messages
Reply With Quote #17

Quote:
Originally Posted by Zylius View Post
PHP Code:
public OnPluginStart()
{

    
AutoExecConfig(true"killmessage_basicsupport");    

OnPluginStart is only called then plugin is loaded, plugins aren't reloaded on map start. (I would suggest using OnConfigsExecuted) Thoe this doesn't explain why it doesn't reload even after server start.
No, calling AutoExecConfig in OnPluginStart is correct. It tells sm that that config belongs to that plugin and to automatically exec the cfg when it execs its other cfgs (after which, OnConfigsExecuted is called).
psychonic is offline