14.01.2012, 11:08
(
Последний раз редактировалось SDraw; 15.01.2012 в 05:44.
)
Quote:
I don't know this. I guess it has been included in the include file, just like Audio_CreateTCPServer
|
PHP код:
public OnGameModeInit()
{
if (!Audio_g_CTS)
{
Audio_g_CTS = true;
Audio_g_OPC = (funcidx("Audio_OnPlayerConnect") != -1);
Audio_g_OPDC = (funcidx("Audio_OnPlayerDisconnect") != -1);
Audio_CreateTCPServer(GetServerVarAsInt("port"));
}
if (funcidx("Audio_OnGameModeInit") != -1)
{
return CallLocalFunction("Audio_OnGameModeInit", "");
}
return 1;
}
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit Audio_OnGameModeInit
forward Audio_OnGameModeInit();