Thread: [Solved] [ H3LP ] Natives
View Single Post
DarthMan
Veteran Member
Join Date: Aug 2011
Old 02-13-2018 , 11:20   Re: [ H3LP ] Natives
Reply With Quote #3

Quote:
Originally Posted by 8guawong View Post
probably need the full code
and is there any error messages?
There are no erros. That global var is a bool. Also, the bool works in the bury plug-in, it's jsut the native that doesn't work correctly when called from the stuck plug-in.

I also made a global bool that gets activated if the bury plug-in is loaded inside the stuck plug-in.
Here's how I check when typing the stuck command"

Code:
public void OnClientSayCommand_Post(int iID, const char[] szCommand, const char[] szArg) {     if(StrEqual(szArg, "/stuck"))     {         if(g_bBuryLoaded)         {             if(IsClientBuried(iID))                 PrintToChat(iID, "* You seem to be burried.");             else                 CheckUserStuck(iID);         }         else             CheckUserStuck(iID);     } }
DarthMan is offline