Hi ,
I am a learner . I try to read many source code of plugins . I was going through one code but I can't understand a bit of it

.
Please help .
The plugin url
http://forums.alliedmods.net/showthread.php?p=597185
The part I can't understand
stock fm_find_ent_by_owner(index, const classname[], owner, jghgtype = 0)
{
new strtype[11] = "classname", ent = index
switch (jghgtype)
{
case 1: strtype = "target"
case 2: strtype = "targetname"
}
while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner) {}
return ent
}