@Annaiidziithaa if you are going to use regex you may as well put it into the trigger rather than the if line. As well if you are going to use so many triggers ie: ! @ . maybe have the ! message the chan an the rest notice the nick.
Example only:
on $*:text:/^([!.@])checkstats?\s?(\S+)?$/iS:#: {
if (!%chekstats) { inc -u20 %chekstats
var %z $iif($regml(1) = !,.msg #,.notice $nick), %u
if ($regml(2) && $regml(2) ison #) {
%u = $v1
%z Stats of %u user :
%z $iif(%cookie [ $+ [ %u ] ],$v1,0) cookie(s) $iif(%cake [ $+ [ %u ] ],$v1,0) cake(s)$&
$iif(%hugs [ $+ [ %u ] ],$v1,0) hug(s) been licked $iif(%lick [ $+ [ %u ] ],$v1,0) times$&
haz been raped $iif(%rape [ $+ [ %u ] ],$v1,0) time(s)
}
else {
%z Plz type user nick to chek his stats ! (User need to be on channel) remember$&
that you must wait 20 seconds between each command!
}
}
}