Welcome To Forum #Pahang

webmaster.webchat.org
 
HomePortalCalendarGalleryFAQSearchRegisterMemberlistUsergroupsLog in

Share | 
 

 For Bot: !login and !register

View previous topic View next topic Go down 
AuthorMessage
kambenk



Number of posts : 20
Age : 29
Localisation : k.trg/losong
Registration date : 2007-08-20

PostSubject: For Bot: !login and !register   Mon Aug 20, 2007 11:43 am

tips: ko kena ade dalam level owner.. /auser owner <nickko>
On *:unotify: { .unset $+(%,$nick) }
on *:JOIN:#: {
if ($level($nick) == owner) && ($($+(%,$nick),2) != 1) {
set %joindata $readini(users.ini, $nick $+ , username)
if (%joindata == $null) {
msg $chan owner tolong register /msg $me !register passwd <-- password aper pon takpe untuk keselamatan
}
else {
msg $chan sila identify pengenalan owner: /msg $me !login password
}
unset %joindata
}
}


on *:TEXT:*Question {
if ($1 == !register) && ($2) {
inc -u3 %natang
if (%natang == 1) {
set %joindata $readini(users.ini, $nick $+ , username)
if (%joindata == $null) {
msg $nick wokeh dah register 12[ $nick 12] password 12[ $2 12]
writeini -l users.ini $nick username $nick
writeini -l users.ini $nick password $md5($2)
writeini -l users.ini $nick mode v
writeini -l users.ini $nick admin 0
msg $nick taip !login password untuk pengesahan
}
else {
msg $nick dah register ler
}
ignore -u3 $nick
halt
}
}
if ($1 == !login) {
inc -u3 %natang
if (%natang == 1) {
if (!$2) { msg $nick command: !login <passwd> | halt }
if ($($+(%,$nick),2) == 1) { .msg $nick dah login dah.. nak login aper lagik | halt }
set %joindata $readini(users.ini, $nick $+ , username)
if (%joindata == $null) {
msg $nick amboi dia suka hati jer nak login!! tak register lagik ler sayang oi
.ignore -u3 $nick
}
else {
if ($md5($2) == $readini(users.ini, $nick $+ , password)) {
msg $nick pengesahan owner 12[ $nick 12] data system di terima
.set $+(%,$nick) 1
}
else {
msg $nick rasa rasa betul ke passwd tu??
}
}
halt
}
}
}
Back to top Go down
View user profile http://losongpanglimaperang.ueuo.com
gangstar



Number of posts : 46
Age : 27
Localisation : .....w.H.....
Registration date : 2007-07-22

PostSubject: Re: For Bot: !login and !register   Tue May 27, 2008 12:41 pm

cam adew BUG jer...
xtau la takowt2 irc aku..
Smile
Back to top Go down
View user profile http://www.OldHavy.page.tl
 
For Bot: !login and !register
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Mark III Rebuild
» How to Couple your TXI and Facebook Accounts to Easily Login
» Prof. Monkey's Pokemon Lab(Rayquaza Wing)
» Weemee
» Cooper/Stover YC throttle-governed

Permissions in this forum:You cannot reply to topics in this forum
Welcome To Forum #Pahang :: Selamat Datang Ke Forum #Pahang :: MIRC-
Jump to: