Eh, missed some brackets/what ever initially, figured it out, mostly..
Sorry for newbie questions, i have a hobby lately of learning how every line of code works
Here is what i came up with so far, if anyone has any idea how to make it more compact for readability, i'm all ears..
PHP Code:
new iWeaponEntityID = -1
while((iWeaponEntityID = engfunc(EngFunc_FindEntityByString, iWeaponEntityID, "classname", szWeaponName)) && pev(iWeaponEntityID, pev_owner) != iPlayer)
{
// Keep Looping until we meet the conditions above
}
__________________