core/smn_lang.cpp
changeset 1034 5ac2c40f13de
parent 1014 26aab5a1e2ba
child 1105 ce907ba50921
     1.1 --- a/core/smn_lang.cpp	Tue Jul 03 19:03:14 2007 +0000
     1.2 +++ b/core/smn_lang.cpp	Tue Jul 03 20:16:40 2007 +0000
     1.3 @@ -41,8 +41,16 @@
     1.4  	return 1;
     1.5  }
     1.6  
     1.7 +static cell_t sm_SetGlobalTransTarget(IPluginContext *pContext, const cell_t *params)
     1.8 +{
     1.9 +	g_SourceMod.SetGlobalTarget(params[1]);
    1.10 +
    1.11 +	return 1;
    1.12 +}
    1.13 +
    1.14  REGISTER_NATIVES(langNativeS)
    1.15  {
    1.16  	{"LoadTranslations",			sm_LoadTranslations},
    1.17 +	{"SetGlobalTransTarget",		sm_SetGlobalTransTarget},
    1.18  	{NULL,							NULL},
    1.19  };