Guest User

Untitled

a guest
Nov 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. elseif ($1 == .timeban || $1 == .tb ) {
  2. if (!$auth($nick)) { notice $nick Bot is checking Q-Auth login, wait a few seconds and try again | who $nick n%nat,1 }
  3.  
  4.  
  5. if (%gi) { return }
  6. var %u = $name($nick)
  7. if (!$hget(vouch,%u)) { return }
  8. if (!$2) { describe %ch Usage: .ban [q-auth] [comment] | return }
  9. var %tu = $name($2)
  10. if (!$hget(vouch,%tu)) { return }
  11. if ($3) { var %game = $get.gamenum($3) }
  12. else { var %game = $user(%tu).lg }
  13.  
  14. if ($user(%tu).baned) { describe %target Player $usercolor(%tu) is already banned | return }
  15.  
  16. if ($accessystem(%u,%tu).cmdban == 0) { notice $nick You havent enough access to use this command | return }
  17.  
  18.  
  19.  
  20. else {
  21.  
  22.  
  23. var %ban = $asctime($calc($ctime + $duration(1d))) -> tomorrow (+ 1d)
  24.  
  25.  
  26. hadd ban %tu %u %ban
  27.  
  28. describe %ch Player $usercolor(%tu) has been banned with comment : 3
  29. }
  30. }
Add Comment
Please, Sign In to add comment