18.09.2010, 13:37
Well, I was reading on the include for zcmd 0.3.1 and noticed an odd function.
What is this function funcidx and what does it do? I have searched the wiki also.
pawn Код:
public OnGameModeInit()
{
zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1;
zcmd_g_HasOPCE = funcidx("OnPlayerCommandPerformed") != -1;
if (funcidx("zcmd_OnGameModeInit") != -1)
{
return CallLocalFunction("zcmd_OnGameModeInit", "");
}
return 1;
}