PHP Code:
//pluginstart
g_condOffset = FindSendPropInfo("CTFPlayer","m_nPlayerCond");
//wherever
new cond = GetEntData(client, g_condOffset);
if(cond != 16 && cond != 20 && cond != 24) //16 cloaked: 20 cloaked/disguising 24 cloaked/disguised.
{
SetEntDataFloat(client, g_cloakOffset, cloakAmount[client]);
}
You can check the playercond for an ubercharge too. Forgot what value(32 it think).