Hi raycomp,
Check if this is what you want:
In this way, the event will only be executed by ops with level 500:
on ^*:text:*:#:{
if ($1 == %c $+ delstats) && ($2) && ($level($address($nick,2)) == 500) {
if ($nick isop $chan) {
remove-stats-nick $network $+ @ $+ $chan $+ @ $+ $2
.msg $chan Stats vir nick $2 is verwyder in opdrag van Eienaars
}
}
}
If you want all operators to have access to this event without an access level, then the code will look like this:
on ^*:text:*:#:{
if ($1 == %c $+ delstats) && ($2) && ($nick isop $chan) {
remove-stats-nick $network $+ @ $+ $chan $+ @ $+ $2
.msg $chan Stats vir nick $2 is verwyder in opdrag van Eienaars
}
}