Quote:
Originally Posted by 8guawong
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);
}
}