Hello. I made a native to check if a client is burried when he types /stuck, but it doesn't seem to work.
Can anyone help me? Many thanks !
Code:
//from max_admin_bury.sp
public APLRes AskPluginLoad2(Handle hSelf, bool bLate, char[] szError, int iErrMax)
{
CreateNative("IsClientBuried", Native_IsBuried);
RegPluginLibrary("max_natives");
return APLRes_Success;
}
public int Native_IsBuried(Handle hPlugin, int iNumparams)
{
int iID = GetNativeCell(1);
return g_bIsBurried[iID];
}
//from max_natives.inc
native bool IsClientBuried(int iID);