I took this part of code from psychonic's SwarmTools and i don't thing it is incorrect because of comparing strings for truly classname even when it contains garbage
PHP Code:
bool:IsValidMarine(marine)
{
if (!IsValidEdict(marine))
return false;
decl String:classname[64];
GetEdictClassname(marine, classname, sizeof(classname));
return !(strcmp(classname, "asw_marine"));
}
I used the same things in OnConfigsExecuted in any of my plugins, and they are aprroved, but as you insisted on it, I've moved them to OnPluginStart