Author Topic: User Commands  (Read 6048 times)

0 Members and 1 Guest are viewing this topic.

Andy

  • Guest
User Commands
« on: 25 February, 2004, 15:11:11 »
Ahoj,
mam hub a mam nastavene vo svojom CZDC++ User Comands.
Rad by som vedel ako mozem tieto alebo nejake ine Comands poslat svojim OP aby si to nemuseli nastavovat
Diky moc
Andy  :D  

CzDC forum

User Commands
« on: 25 February, 2004, 15:11:11 »

Beny

  • Guest
User Commands
« Reply #1 on: 25 February, 2004, 15:17:55 »
No pokud mas hub tak to nejak jde nastavit na HUBu. Ale nevim jak, protoze hub nemam  :P  

Offline PPK

  • The Creator (or creature ???)
  • Administrator
  • Hero Member
  • *****
  • Posts: 539
  • Karma: +0/-0
    • http://www.czdc.org
User Commands
« Reply #2 on: 25 February, 2004, 16:27:31 »
Zalezi na hub softu treba pro PtokaX 0.3.3.0 build 15.26 mam ja tenhle skriptik ;)
Code: [Select]
-- UserCommand extension script for PtokaX by Gadget
-- Modified for PtokaX 0.3.3.0 build 15.26 by PPK

function NewUserConnected(curUser)
if curUser.bUserCommand then
  curUser:SendData("$UserCommand 255 7")
  curUser:SendData("$UserCommand 0 3")
  curUser:SendData("$UserCommand 1 3 *** "..frmHub:GetHubName().." (Rules) ***$<%[mynick]> !rules|")
  curUser:SendData("$UserCommand 1 3 Help$<%[mynick]> !help|")
end
end

function OpConnected(curUser)
if curUser.bUserCommand then
  curUser:SendData("$UserCommand 255 7")
  curUser:SendData("$UserCommand 0 3")
  curUser:SendData("$UserCommand 1 3 *** "..frmHub:GetHubName().." (Rules) ***$<%[mynick]> !rules|")
  curUser:SendData("$UserCommand 1 2 Show user info$<%[mynick]> !getinfo %[nick]|<%[mynick]> !userinfo %[nick]|")
  curUser:SendData("$UserCommand 1 2 Gag user$<%[mynick]> !gag %[nick]|")
  curUser:SendData("$UserCommand 1 2 Ungag user$<%[mynick]> !ungag %[nick]|")
  curUser:SendData("$UserCommand 1 2 Drop user$<%[mynick]> !drop %[nick]|")
  curUser:SendData("$UserCommand 1 2 Ban and kick user$<%[mynick]> !ban %[nick] %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Ban user$<%[mynick]> !nickban %[nick]|")
  curUser:SendData("$UserCommand 1 3 Ban IP...$<%[mynick]> !banip %[line:Enter an IP to ban]|")
  curUser:SendData("$UserCommand 1 3 Unban user or ip...$<%[mynick]> !unban %[line:Enter an IP or name to unban]|")
  curUser:SendData("$UserCommand 1 3 Clear all temp bans$<%[mynick]> !clrtempban|")
  curUser:SendData("$UserCommand 1 1 Show ban list$<%[mynick]> !getbanlist|")
  curUser:SendData("$UserCommand 1 1 Search IP$<%[mynick]> !ipinfo %[line:Enter an IP to search]|")
  curUser:SendData("$UserCommand 1 3 Show login history$<%[mynick]> !history|")
  curUser:SendData("$UserCommand 1 3 Help$<%[mynick]> !help|")
end
end
« Last Edit: 25 February, 2004, 16:32:11 by PPK »

Andy

  • Guest
User Commands
« Reply #3 on: 28 February, 2004, 10:01:06 »
Moc ste mi pomohli, tu Ptoku mam  :P
Andy

Andy

  • Guest
User Commands
« Reply #4 on: 28 February, 2004, 11:05:05 »
Hele jeste,
to si musi OP nejako aktivovat alebo take nieco alebo to uz ma automaticky?
Dik

Offline PPK

  • The Creator (or creature ???)
  • Administrator
  • Hero Member
  • *****
  • Posts: 539
  • Karma: +0/-0
    • http://www.czdc.org
User Commands
« Reply #5 on: 28 February, 2004, 11:26:20 »
V tomhle pripade je to udelany tak ze pokud klient podporuje UserCommands tak mu to ty prikazy pri loginu posle ;)
Ale to funguje az u PtokaXu 0.3.3.0 build 15.26 u predchozich se musi vyhodit radky s  
Code: [Select]
if curUser.bUserCommand then a jejich ukoncovaci  
Code: [Select]
end  :)
« Last Edit: 28 February, 2004, 11:26:49 by PPK »

Andy

  • Guest
User Commands
« Reply #6 on: 28 February, 2004, 11:28:46 »
Nevies kde zozeniem tu ver. .26? mam len .25 PLS :)

Offline PPK

  • The Creator (or creature ???)
  • Administrator
  • Hero Member
  • *****
  • Posts: 539
  • Karma: +0/-0
    • http://www.czdc.org
User Commands
« Reply #7 on: 28 February, 2004, 12:38:41 »
26 nesezenes nikde :P Stejne jako se ti urcite nemela dostat do pracek 25, pochybuju ze si byl v beta test teamu :lol:  
« Last Edit: 28 February, 2004, 12:46:03 by PPK »

Andy

  • Guest
User Commands
« Reply #8 on: 28 February, 2004, 12:59:57 »
No super :-(

Offline the_pest

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +0/-0
User Commands
« Reply #9 on: 28 February, 2004, 13:44:44 »
Quote
26 nesezenes nikde :P Stejne jako se ti urcite nemela dostat do pracek 25, pochybuju ze si byl v beta test teamu :lol:
Ja nejak nechapu proc uz to Ptaczek nevyda <_<  

Offline PPK

  • The Creator (or creature ???)
  • Administrator
  • Hero Member
  • *****
  • Posts: 539
  • Karma: +0/-0
    • http://www.czdc.org
User Commands
« Reply #10 on: 28 February, 2004, 15:35:52 »
Protoze nema cas a vi ze tam ma veci co je treba opravit :unsure: