|
Junior Member
|
12-20-2016
, 22:59
Re: Steam Group Admins (updated 2011-09-26)
|
#181
|
Quote:
Originally Posted by Dragonisser
So any potential fix for the ccc stuff?
Could you show me the code? I cant figure out how to add this since the code of the custom chatcolor doesnt have such a function.
Nvm. ive added this:
Code:
public OnPluginStart() {
RegAdminCmd("sm_reloadccc", Command_ReloadConfig, ADMFLAG_CONFIG, "Reloads Custom Chat Colors config file");
colorForward = CreateGlobalForward("CCC_OnChatColor", ET_Event, Param_Cell);
nameForward = CreateGlobalForward("CCC_OnNameColor", ET_Event, Param_Cell);
tagForward = CreateGlobalForward("CCC_OnTagApplied", ET_Event, Param_Cell);
applicationForward = CreateGlobalForward("CCC_OnColor", ET_Event, Param_Cell, Param_String, Param_Cell);
messageForward = CreateGlobalForward("CCC_OnChatMessage", ET_Ignore, Param_Cell, Param_String, Param_Cell);
preLoadedForward = CreateGlobalForward("CCC_OnUserConfigPreLoaded", ET_Event, Param_Cell);
loadedForward = CreateGlobalForward("CCC_OnUserConfigLoaded", ET_Ignore, Param_Cell);
configReloadedForward = CreateGlobalForward("CCC_OnConfigReloaded", ET_Ignore);
LoadConfig();
CreateTimer(5.0, AutomaticConfigReload, _, TIMER_REPEAT);
}
public Action:AutomaticConfigReload(Handle:hTimer)
{
LoadConfig();
return Plugin_Continue;
}
|
aye I don't know if I'm being dumb or not but when I edit that code in the plugin it don't reload can I have some help adding the code to the plugin?
|
|
|
|