Jump to content

problem


Guest johny544

Recommended Posts

on *:SIGNAL:mta.pm:{
 if ($3 == login) {
   if (!$4) mta.msg $1 $2 Error: /msg login 
   elseif ($4 == $readini(login.ini,$mta.name($1,$2),password)) {
     !writeini -n login.ini $mta.name($1,$2) ip $mta.ip($1,$2)
     if ($readini(login.ini,$mta.name($1,$2),level) >= 6) mta.say $1 Server Admin $mta.name($1,$2) logged in. (Level: $readini(login.ini,$mta.name($1,$2),level) $+ )
     elseif ($readini(login.ini,$mta.name($1,$2),level) >= 2) mta.say $1 Server Moderator $mta.name($1,$2) logged in. (Level: $readini(login.ini,$mta.name($1,$2),level) $+ )
     else mta.say $1 Player ' $+ $mta.name($1,$2) $+ ' logged in.
     $+(.timerlogin.,$mta.name($1,$2),1) off
     $+(.timerlogin.,$mta.name($1,$2),2) off
   }
   elseif ($4 != $readini(login.ini,$mta.name($1,$2),password)) {
     mta.msg $1 $2 mta.msg $1 $2 Error: Wrong Password
     mta.kick $1 $2
   }
 }
 elseif ($3 == register) {
   if $readini(login.ini,$mta.name($1,$2),level) mta.msg $1 $2 Error - This name is Registered.
   else {
     writeini -n login.ini $mta.name($1,$2) password $4
     writeini -n login.ini $mta.name($1,$2) level 1
     writeini -n login.ini $$mta.name($1,$2)) ip $mta.ip($1,$2)
     mta.msg $1 $2 INFO: Nick: $mta.name($1,$2) > Password: $5 > Level: 1 > IP: $mta.ip($1,$2)
     mta.msg $1 $2 $mta.name($1,$2) - type /msg login 
   }
 }
}
on *:SIGNAL:mta.join:{
 if ($mta.ip($1,$2) == $readini(login.ini,$mta.name($1,$2),ip)) {
   if (($readini(login.ini,$mta.name($1,$2) $+ .level) >= 2) && ($readini(login.ini,$mta.name($1,$2) $+ .level)  <= 5)) mta.say $1 Moderator $mta.name($1,$2) $+ , logged-in at level: $readini(login.ini,$mta.name($1,$2),level)
   elseif (($readini(login.ini,$mta.name($1,$2) $+ .level) >= 6) && ($readini(login.ini,$mta.name($1,$2) $+ .level)  <= 10)) mta.say $1 Admin $mta.name($1,$2) $+ , logged-in at level: $readini(login.ini,$mta.name($1,$2),level)   
   else mta.say $1 $mta.name($1,$2) Logged in at level: $readini(login.ini,$mta.name($1,$2) $+ .level)
 }
 elseif ($readini(login.ini,$mta.name($1,$2) $+ .password) != $null) {
   mta.msg $1 $2 You must Login for this Nick-Name. (/msg login )
   $+(.timerlogin.,$mta.name($1,$2),1) 1 20 mta.say $1 Kicking $mta.name($1,$2) Reason: Did not Login
   $+(.timerlogin.,$mta.name($1,$2),2) 1 20 mta.kick $1 $2
 }
 else mta.msg $1 $2 Register your nick today ! (/msg register )
}

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...