Guest User

Untitled

a guest
Jul 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. on *:text:?addlatest*:#:{
  2. ;now here some script to check users ... like
  3. if ($nick != [EvO]B3LL-UK ) {
  4. msg $chan no permission to add files to latest list
  5. halt
  6. }
  7. write latest.txt $ctime $2-
  8. msg $chan added $2- to latest
  9. }
  10. on *:text:?latest*:#:{
  11. if ($2 == $null ) { var %max = 20 }
  12. if ($2 >= 30 ) { var %max = 30 }
  13. if ($2 < 30 ) { var %max = $2 }
  14. var %i = 1
  15. var %lines = $lines(latest.txt)
  16. while (%i <= %max ) {
  17. var %raw = $read(latest.txt,%lines)
  18. notice $nick $+(%i,.) $gettok(%raw,2-,32)
  19. dec %lines 1
  20. inc %i 1
  21. }
  22. }
Add Comment
Please, Sign In to add comment