Author Topic: !banlist  (Read 4363 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemesis2500

  • Wiseguy
  • **
  • Posts: 63
  • The Joker
    • View Profile
    • Grand VCMP Server
!banlist
« on: July 12, 2008, 05:38:08 am »
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 ._.  :-[


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: !banlist
« Reply #1 on: July 12, 2008, 10:39:05 pm »
Thx Revilo help my in banlist

Nemesis Use:

Quote
    elseif ($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

Quote
alias 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-  ;)
« Last Edit: July 12, 2008, 10:45:11 pm by TanaX01 »

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: !banlist
« Reply #2 on: July 12, 2008, 10:42:34 pm »
Just use !unban <fullname>


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: !banlist
« Reply #3 on: July 12, 2008, 10:45:59 pm »
Just use !unban <fullname>

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

Offline Nemesis2500

  • Wiseguy
  • **
  • Posts: 63
  • The Joker
    • View Profile
    • Grand VCMP Server
Re: !banlist
« Reply #4 on: July 12, 2008, 11:37:23 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