Skip to content
MSN Addons

con anyone help me

A TG007 community discussion started by p0war.

Discussion 3 posts
Page 1 of 1
Open
Topic #3332 · 3 published posts · 757 views

hi all i want addon like this

 

kingth : http://song4.6rb.com/egypt/7akeem/7akeem-nar.ram added By rroby 12/10/2004 11:20:16

Type: !add (Song`s URL) For Adding A Song

 

if any one added link 2 all and script msg us about this link

 

if any one add some link the script tell him sorry this link is added by someone

 

plz help me

 

sorry for bad langauge

I hope this is what you were looking for:

Code:

#showsongs on 
on *:text:`addsong *:#: { 
 if (!$2) { msg # please add the link to the song, $nick | return } 
 var %link = $2- 
 var %data = $read(songs.txt,snt,%link) 
 if (!%data) { 
   var %addby added by $nick on $asctime(dd/mm/yy) 
   write songs.txt %link %addby 
   msg # Thank you for adding song %link 
 } 
 else msg # Thanks you $nick $+ , but song %link is already %data 
} 
#showsongs end 

on admin:text:`showsongs*:#:{ 
 if ($2 == $group(#showsongs)) { msg # showsongs is already $group(#showsongs) | return } 
 if ($2 == on) { 
   .enable #showsongs 
   .timershowsongs 0 $iif($3,$3,300) msg $!chr(37) $!+ $right(#,-1) Look at this song: $!read(songs.txt) 
   msg # showsongs is now on, songs will be showed with interval of $duration($timer(showsongs).delay) 
 } 
 elseif ($2 == off) { 
   .disable #showsongs 
   .timershowsongs off 
   msg # showsongs is now off 
 } 
 else msg # Please use `showsongs on [seconds] or `showsongs off. Current status: $group(#showsongs) 
}

 

 

Admins can use:

`showsongs on [ optional number of seconds interval for timer here ]

`showsongs off

 

Songs are added by: `addsong <link here>

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

If you're going to use timers then use the 'n' flag in $read():

 

.timershowsongs 0 $iif($3,$3,300) msg $!chr(37) $!+ $right(#,-1) Look at this song: $!read(songs.txt,n)

Edited Apr 11, 2005 11:59 PM by tidy trax