Ping System

View previous topic View next topic Go down

Ping System

Post  wann on Tue Apr 28, 2009 9:26 am

;########################
;# Ping System By Wann#
;########################

alias pingscript {
dialog -m _pingscript _pingscript
}

dialog _pingscript {
title "Ping Reply By wann"
size -1 -1 150 90
box "" 1, 1 -3 149 90
button "On" 2, 3 4 75 20,left push flat group
button "Off" 3, 79 4 70 20,left push flat
button "!Ping Nickname" 4, 3 23 146 36,left push flat
button "Ok" 5, 3 58 75 28,ok flat
button "Cancel" 6, 79 58 70 28,cancel flat
halt
}

on *:load: { .echo -a Ping Script Loaded! }
on *:unload: { .echo -a Ping Script Unloaded! }

menu status,channel,menubar {
Ping System:/pingscript
}

on 1:dialog:_pingscript:sclick:2:{ if ($did(2) == On) .enable #pingscript | echo -a Ping Script Is 4On }
on 1:dialog:_pingscript:sclick:3:{ if ($did(3) == Off) .disable #pingscript | echo -a Ping Script Is 4Off }
on 1:dialog:_pingscript:sclick:4:{ ctcp $$?="Please Enter Nickname:" ping }

#pingscript on

on *:text:!ping:#: { ctcp $nick ping | notice $nick Ping $nick }
on *:CtcpReply:ping*: { notice $nick Your Ping Reply Is $calc($ctime - $2) $- Seconds %vers }

#pingscript end

wann
WebMaster

Male
Number of posts : 213
Age : 32
Location : port dickson
Registration date : 2008-03-20

View user profile http://www.wolfgang.tk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum