Hey THE_ADZ,
The DaveC's code works fine, but I think is much better you use mIRC's
Access levels (Read more on mirc's help).
If you decide to use it, there's some code that ought to be helpfull:
; This one convert nicks of %list into Access
alias abc { %@ = 1 | while ($gettok(%list,%ß,32)) { auser -a 4 $v1 | inc %@ } }
; and this one is how your code going to look
on @5:JOIN:#avatarrp: mode # +h $nick