public APLRes AskPluginLoad2(Handle hSelf, bool bLate, char[] szError, int iErrMax) { CreateNative("IsClientBuried", Native_IsBuried); RegPluginLibrary("max_natives"); return APLRes_Success; } public Native_IsBuried(Handle hPlugin, int iNumparams) { int iID = GetNativeCell(1); return bool:g_bIsBurried[iID]; } //from max_natives.inc native bool IsClientBuried(int iID);
CreateNative("PS_SetPoints", PS_SetPoints); public PS_SetPoints(Handle:plugin, numParams) { new client = GetNativeCell(1); new newval = GetNativeCell(2); points[client] = newval; }