babka68
Участник
- Сообщения
- 2,124
- Реакции
- 956
И не создастся, автор указал это в описании , но не добавил это в кодеcfg/sourcemod/map-decals.cfg
Конфиг не создался. В чем может быть беда?
C-подобный:
public void OnPluginStart() {
// Commands
RegAdminCmd("sm_paintdecal", Command_PaintDecal, ADMIN_LEVEL_SPRAY, "Sprays a Decal by <name | id> (names specified in config)");
RegAdminCmd("sm_removedecal", Command_RemoveDecal, ADMIN_LEVEL_SPRAY, "Removes a Decal whilst aiming at it, [all] removes all Decals (on current Map), [id] removes a Decal by id, [last] removes last painted Decal, [name] removes all Decals by decalname (on current Map)");
RegAdminCmd("sm_listdecal", Command_ListDecal, ADMIN_LEVEL_SPRAY, "Shows the name of a Decal whilst aiming at it, [all] lists all Decal names available, [id] lists a Decal by id, [last] lists the last painted Decal (on current Map), [map] lists all Decals painted (on current Map), [name] lists all Decals by that Name painted (on current Map), [saved] lists all Decals saved in config File");
RegAdminCmd("sm_savedecal", Command_SaveDecal, ADMIN_LEVEL_SAVE, "Saves a Decal to the config whilst aiming at it, [all] saves all Decals (on current Map), [id] saves a Decal by id, [last] saves last painted Decal, [name] saves all Decals by decalname (on current Map)");
RegAdminCmd("sm_aimpos", Command_GetAimPos, ADMIN_LEVEL_SAVE, "Shows the position you are currently aiming at");
RegAdminCmd("sm_decalmenu", Command_DecalMenu, ADMIN_LEVEL_SPRAY, "Shows the Map Decals Menu");
// ConVars
md_version = CreateConVar("md_version", PLUGIN_VERSION, "Map Decals plugin version", FCVAR_DONTRECORD | FCVAR_NOTIFY);
// Set it to the correct version, in case the plugin gets updated...
SetConVarString(md_version, PLUGIN_VERSION);
md_maxdis = CreateConVar("md_decal_dista", "50.0", "How far away from the Decals position it will be traced to and check distance to prevent painting a Decal over another");
md_pos = CreateConVar("md_decal_printpos", "1", "Turns on/off printing out of decal positions");
md_spraysound = CreateConVar("md_decal_spraysound", "player/sprayer.wav", "Path to the spray sound used by map-decals plugin");
// Create our dynamic arrays we need for the keyvalues/decal data
adt_decal_names = CreateArray(64);
adt_decal_paths = CreateArray(PLATFORM_MAX_PATH);
adt_decal_precache = CreateArray();
adt_decal_id = CreateArray();
adt_decal_position = CreateArray(3);
LoadTranslations("map-decals.phrases");
/* See if the menu plugin is already ready */
Handle topmenu;
if (LibraryExists("adminmenu") && ((topmenu = GetAdminTopMenu()) != INVALID_HANDLE)) {
/* If so, manually fire the callback */
OnAdminMenuReady(topmenu);
}
}
md_spraysound = CreateConVar("md_decal_spraysound", "player/sprayer.wav", "Path to the spray sound used by map-decals plugin");
C-подобный:
AutoExecConfig(true, "map-decals");