Quote:
Originally Posted by 11530
No. For example, any plugin which could be labelled as [ANY] whilst still having netprops/datamaps which might not necessarily work in a certain game.
|
The correct way to implement that is with |static| anyway.
FindSendPropOffs is also more performant for this case.
const-qualifying the param also means nothing.
PHP Code:
bool:IsPlayerControllingBot(client)
{
static bIsAvailable = FindSendPropOffs("CBasePlayer", "m_bIsControllingBot") != -1;
return bIsAvailable && GetEntProp(client, Prop_Send, "m_bIsControllingBot") == 1;
}
__________________