User Commands
 

News:

03/MAR/2014 CzDC.org was temporary unavailable because of DDOS attack and hosting service provider issues...
20/JAN/2011 CzDC 0.699 D1 released...
16/JAN/2011 CzDC 0.699 D released...
24/DEC/2009 CzDC 0.699 C released...

Main Menu

User Commands

Started by Andy, 25 February, 2004, 15:11:11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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  

Beny

No pokud mas hub tak to nejak jde nastavit na HUBu. Ale nevim jak, protoze hub nemam  :P  

PPK

#2
Zalezi na hub softu treba pro PtokaX 0.3.3.0 build 15.26 mam ja tenhle skriptik ;)

-- 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

Andy


Andy

Hele jeste,
to si musi OP nejako aktivovat alebo take nieco alebo to uz ma automaticky?
Dik

PPK

#5
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   if curUser.bUserCommand then a jejich ukoncovaci  end  :)

Andy

Nevies kde zozeniem tu ver. .26? mam len .25 PLS :)

PPK

#7
26 nesezenes nikde :P Stejne jako se ti urcite nemela dostat do pracek 25, pochybuju ze si byl v beta test teamu :lol:  


the_pest

Quote26 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 <_<  

PPK

Protoze nema cas a vi ze tam ma veci co je treba opravit :unsure:  

Quick Reply

Warning: this topic has not been posted in for at least 30 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name:
Email:
Shortcuts: ALT+S post or ALT+P preview

SMF spam blocked by CleanTalk