glacier_rat

Untitled

May 30th, 2010
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.33 KB | None | 0 0
  1. On $*:TEXT:/^[!@.]setvid/Si:#: {
  2.   if ($nick isvoice $chan) || ($nick ishop $chan) || ($nick isop $chan) {
  3.     writeini youtube.ini Vids Vidnum $calc($readini(youtube.ini,Vids,Vidnum) + 1)
  4.     writeini youtube.ini Vids $readini(youtube.ini,Vids,Vidnum) $replace($2-,|,$chr(34))
  5.     notice $nick Your youtube link has been saved. It's id number is $readini(youtube.ini,Vids,Vidnum) $+ . Type !vid $readini(youtube.ini,Vids,Vidnum) to see it.
  6.   }
  7.   else {
  8.     notice $nick You must have atleast voice to perform this command.
  9.   }
  10. }
  11. On $*:TEXT:/^[!@.]vid/Si:#: {
  12.   if ($2 isnum) && ($readini(youtube.ini,Vids,$2) != $null) {
  13.     $iif($left($1,1) == @,msg $chan,notice $nick) Youtube ID $2 $+ : $readini(youtube.ini,Vids,$2)
  14.   }
  15.   else {
  16.     notice $nick The Youtube ID $2 doesn't exist, please try another.
  17.   }
  18. }
  19. On $*:TEXT:/^[!@.]clearvid/Si:#: {
  20.   if ($nick isop $chan) {
  21.     if ($2 == all) {
  22.       remini youtube.ini Vids
  23.       notice $nick All Youtube links have been removed.
  24.     }
  25.     elseif ($2 isnum) && ($readini(youtube.ini,Vids,$2) != $null) {
  26.       remini youtube.ini Vids $2
  27.       notice $nick Youtube video $2 has been removed.
  28.     }
  29.     else {
  30.       notice $nick This Youtube link ID doesn't exist, please try another.
  31.     }
  32.   }
  33.   else {
  34.     notice $nick You must be a channel operator to perform this command.
  35.   }
  36. }
Add Comment
Please, Sign In to add comment