If you can't find a substitute for hasweapon(), you could always script your own.
This should work:
PHP Code:
function PlayerHasWeapon(weaponname) {
for(w: weapons) {
if(w.name == weaponname) {
return true;
}
}
return false;
}
That might not be the best way to do it, but it will work. (I'm not sure, if you can use something like weapons.name.index(weaponname) or not)