I just download plugin sources. Reading them i found this function, and...
Code:
public bool:TraceFilterClients(i_Entity, i_Mask, any:i_Data)
{
if (i_Entity == i_Data)
return false
if (1 <= i_Entity <= MaxClients)
return false
return true
}
whaaaaaaaaaaaaaaaaaat?
This really work fine? May be replace to
Code:
public bool:TraceFilterClients(i_Entity, i_Mask, any:i_Data)
{
// because 0 - is World, 1 to MaxClients is clients, and other is entity (networked and not)
return i_Entity != i_Data && i_Entity > MaxClients;
}
Dude, you have memory leak. Close handle in EventChargeEnd function for prevent server lags:
Code:
h_Trace = TR_TraceRayFilterEx(/*...*/);
if (TR_DidHit(h_Trace)) { /*...*/ }
CloseHandle(h_Trace);