So I used this
Code:
on *:text:!permitxxx:#:{
  if (%floodpermitas || $($+(%, floodpermitas., $nick), 2)) {
    return
  }
  set -u1 %floodpermitas On
  set -u3 %floodpermitas. $+ $nick On

  if ($readini(points.ini, #, $nick) >= 20) {
    writeini Points.ini # $nick $calc($v1 - 20)
    hadd -m $+(taskai., #) $nick 1
    msg # !permit $nick 
  }

  else {
    msg # Sry $nick $+ , tu neturi pakankamai tasku. Tau reikia 20 tasku.
  }
}

So its little bit weird, and hard to explain, from start I was thinking everything is working, but I noticed that, then I check points with "!taskai" command its say same thing, I don't lose 20 points for using command, and points doesn't grow any more

update: So I noticed that, I have 5 points, I use command "!permitxxx" (cost 5), it works, I looked up "Points.ini" file its says I have 0, and then I gain 1 point for being in chat and its says I have 6 points.

Last edited by Deerayn; 29/12/15 07:58 PM.