• Welcome to Vice City Multiplayer.
 

!banlist

Started by Nemesis2500, July 12, 2008, 03:38:08 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Nemesis2500

Quote[22:35]   <Nemesis_24>   !banlist
[22:35]   *Hunter_Bot*   [Nemesis_24]
[22:35]   *Hunter_Bot*   1215120346=201.215.55.26 banned Reason: Test
[22:35]   *Hunter_Bot*   1215209245=201.215.55.26 banned

how can i make if i unban someone it automaticlly desapears from !banlist.
Something like this
Quote[22:35]   <Nemesis_24>   !banlist
[22:35]   *Hunter_Bot*   [ No PLayers Has Been Banned ]

sorry if my english sucks ._.  :-[


TanaX01

#1
Thx Revilo help my in banlist

Nemesis Use:

Quoteelseif ($2 == !ban) {
      if ($hget(vcmp,loggedin. $+ %id) < 3) { vcmp.adminmsg %id You Must Be Admin Level 2 Or Higher To Attempt This Command. }
      else {
        if ($vcmp.nameid($3) == $null) vcmp.adminmsg %id Error: Invalid ID.
        else {
          if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg %id You can't ban someone higher level admin than you... }
          else { vcmp.ban2 $3 | vcmp.adminchat ** Admin:[ $vcmp.hgetname(%id) ] Banned:[ $vcmp.hgetname($vcmp.nameid($3)) ] Reason:[ $4- ]
          }
        }
      }
    }

Create New Alias

alias vcmp.ban2

Quotealias vcmp.ban {
  vcmp.adminchat ** Banning $$vcmp.hgetname($vcmp.nameid($1)) $iif($2,Reason: $2-,)
  !writeini -n vcmp.bans.ini ** Admin: $chr(91) $nick $chr(93) Banned: $chr(91) $vcmp.hgetname($vcmp.nameid($1)) $chr(93) Reason: $chr(91) $2- $chr(93) DateBan: $chr(91) $fulldate $chr(93) TimeBan: $chr(91) $time(HH:nn) $chr(93) IP: $chr(91) $vcmp.hgetip($vcmp.nameid($1)) $chr(93)
  .timer. $+ $$vcmp.nameid($1) $+ .ban -m 1 250 vcmp.command ban $$vcmp.nameid($1)
}
alias vcmp.ban2 {
  vcmp.adminchat ** Banning $$vcmp.hgetname($vcmp.nameid($1)) $iif($2,Reason: $2-,)
  !writeini -n vcmp.bans.ini ** Admin: $chr(91) $$vcmp.hgetname($vcmp.nameid($1)) $chr(93) Banned: $chr(91) $vcmp.hgetname($vcmp.nameid($1)) $chr(93) Reason: $chr(91) $2- $chr(93) DateBan: $chr(91) $fulldate $chr(93) TimeBan: $chr(91) $time(HH:nn) $chr(93) IP: $chr(91) $vcmp.hgetip($vcmp.nameid($1)) $chr(93)
  .timer. $+ $$vcmp.nameid($1) $+ .ban -m 1 250 vcmp.command ban $$vcmp.nameid($1)
}

-TaNaX01-  ;)

Mattz

Just use !unban <fullname>

TanaX01

Quote from: Mattz on July 12, 2008, 08:42:34 PM
Just use !unban <fullname>

Failed :S ban nemesis_24 and delate in !unbanip or name  :-X

Nemesis2500

Quote from: TanaX01 on July 12, 2008, 08:45:59 PM
Quote from: Mattz on July 12, 2008, 08:42:34 PM
Just use !unban <fullname>

Failed :S ban nemesis_24 and delate in !unbanip or name  :-X
yes my !unban is only for ips  :-X