Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elseif ($1 == .timeban || $1 == .tb ) {
- if (!$auth($nick)) { notice $nick Bot is checking Q-Auth login, wait a few seconds and try again | who $nick n%nat,1 }
- if (%gi) { return }
- var %u = $name($nick)
- if (!$hget(vouch,%u)) { return }
- if (!$2) { describe %ch Usage: .ban [q-auth] [comment] | return }
- var %tu = $name($2)
- if (!$hget(vouch,%tu)) { return }
- if ($3) { var %game = $get.gamenum($3) }
- else { var %game = $user(%tu).lg }
- if ($user(%tu).baned) { describe %target Player $usercolor(%tu) is already banned | return }
- if ($accessystem(%u,%tu).cmdban == 0) { notice $nick You havent enough access to use this command | return }
- else {
- var %ban = $asctime($calc($ctime + $duration(1d))) -> tomorrow (+ 1d)
- hadd ban %tu %u %ban
- describe %ch Player $usercolor(%tu) has been banned with comment : 3
- }
- }
Add Comment
Please, Sign In to add comment