PHP Code:
int charger = GetEntPropEnt(client, Prop_Send, "m_pummelAttacker");
int charger2 = GetEntPropEnt(client, Prop_Send, "m_carryAttacker");
int hunter = GetEntPropEnt(client, Prop_Send, "m_pounceAttacker");
int joackey = GetEntPropEnt(client, Prop_Send, "m_jockeyAttacker");
return charger > 0 || charger2 > 0 || hunter > 0 || joackey > 0;
It's inefficient to pull all these values and then check them. Instead pull 1 and check etc. Also "joackey" should be "jockey".
In "OnPlayerRunCmd" you pull data from the "G_kv" keyvalue... keyvalues are slow, I think it would be faster to pull the data into an Enum Struct on plugin start or something and query that. Especially considering that "OnPlayerRunCmd" runs for EVERY client connected many times per second.
__________________