Advertisement
Guest User

Untitled

a guest
Apr 20th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. on $*:text:/!points (add|remove|check)/Si:#:{
  2. if ($2 == check) {
  3. if ($readini(Points.ini,$+(#,.,$3),Points) > 0) {
  4. msg # $3 has $readini(Points.ini,$+(#,.,$3),Points) points.
  5. }
  6. }
  7. elseif ($nick isop #) {
  8. if ($0 < 3) { msg # Insufficient parameters: Use !points <add|remove> <user> [number] | return }
  9. writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) $iif($2 == add,+,-) $iif($4 isnum,$4,1))
  10. msg $chan $3 now has $readini(Points.ini,$+(#,.,$3),Points) total points.
  11. }
  12.  
  13. else { msg $chan This command is only available to moderators. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement