Implemented
amb423 - Added IsClientObserver() native
3 * ===============================================================
4 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
5 * ===============================================================
7 * This file is not open source and may not be copied without explicit
8 * written permission of AlliedModders LLC. This file may not be redistributed
9 * in whole or significant part.
10 * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
15 #include "PluginSys.h"
16 #include "Translator.h"
18 static cell_t sm_LoadTranslations(IPluginContext *pCtx, const cell_t *params)
22 CPlugin *pl = (CPlugin *)g_PluginSys.FindPluginByContext(pCtx->GetContext());
24 pCtx->LocalToString(params[1], &filename);
26 index = g_Translator.FindOrAddPhraseFile(filename);
27 pl->AddLangFile(index);
32 REGISTER_NATIVES(langNativeS)
34 {"LoadTranslations", sm_LoadTranslations},