Bah voila, j'ai resortit ça de mes remotes! C'était mon premier dialogue valable :P . J crois meme que j vais l'améliorer et tout!
Bon a mon avis ça va pas etre le plus util car quand il faut se dépecher, on va pas ouvrir un dialog pour kb lol. Mais bon ça peut servir et pis voila :) .
Source / Exemple :
;#################################
;#Moderator Controle by Ice-Boss alias T0x1K#
;################################
menu channel,menubar,nicklist,statut {
--==Moderator Controle==--:/dialog -m controle controle
}
dialog controle {
title "Moderator control by Ice-Boss"
size -1 -1 198 25
option dbu
button "Contrôles", 1, 3 2 56 19, flat
button "Ban, Kick", 2, 137 2 56 19, flat
button "access", 3, 72 2 56 19, flat
button "" 4, 0 0 0 0, cancel
}
on 1:dialog:controle:sclick:1:{
/dialog -m commandes commandes
}
on 1:dialog:controle:sclick:3:{
/dialog -m access access
}
on 1:dialog:controle:sclick:2:{
/dialog -m ban ban
}
dialog commandes {
title "Commandes de controles"
size -1 -1 202 118
option dbu
text "Addon créé par Ice-Boss", 1, 44 104 123 12
text "Voice", 2, 7 3 16 9
edit "", 3, 53 15 47 10
text "Voicer qui?", 4, 7 16 47 8
button "Voice!", 5, 167 13 30 12, flat
text "Op", 6, 6 29 25 8
text "Oper qui?", 7, 5 39 47 8
edit "", 8, 53 38 47 10
button "Op!", 9, 167 36 30 12, flat
text "Devoice", 10, 5 53 25 8
text "Devoicer qui?", 11, 5 64 46 8
text "Où?", 12, 101 16 15 8
edit "", 13, 117 14 49 10
text "Où?", 14, 101 38 15 8
edit "", 15, 116 36 50 10
edit "", 16, 53 62 47 10
text "Où?", 17, 100 62 15 8
edit "", 18, 116 61 50 10
button "Devoice!", 19, 167 60 30 12, flat
text "Deop", 20, 6 80 25 8
text "Deoper qui?", 21, 6 91 47 8
edit "", 22, 53 89 47 10
text "Où?", 23, 101 89 15 8
edit "", 24, 117 88 50 10
button "Deop!", 25, 168 86 30 12, flat
button "" 26, 0 0 0 0, cancel
}
on 1:dialog:commandes:sclick:5:{
mode $did(13) +v $did(3)
}
on 1:dialog:commandes:sclick:9:{
mode $did(15) +o $did(8)
}
on 1:dialog:commandes:sclick:19:{
mode $did(18) -v $did(16)
}
on 1:dialog:commandes:sclick:25:{
mode $did(24) -o $did(22)
}
dialog access {
title "Access control"
size -1 -1 200 116
option dbu
text "A qui?", 1, 4 8 20 9
edit "", 2, 28 8 50 10
text "Combien?", 3, 87 9 29 8
text "Autre ACCESS:", 13, 79 100 39 8
edit "", 14, 119 99 29 10
box "Group Box", 15, 3 31 109 73
button "Mode pour gerer les access", 16, 16 48 81 13, flat
button "Mode pour gerer les aop,sop,vop", 17, 16 74 81 13, flat
text "Où?", 21, 4 19 25 8
edit "", 22, 28 18 50 10
button "Valider!", 23, 156 100 37 12, flat
button "3", 24, 120 9 10 8, flat
button "5", 25, 120 18 10 8, flat
button "10", 26, 120 27 10 8, flat
button "20", 27, 120 36 10 8, flat
button "9999", 28, 120 90 15 8, flat
button "100", 29, 120 54 13 8, flat
button "5000", 30, 120 81 15 8, flat
button "1000", 31, 120 72 15 8, flat
button "500", 32, 120 63 13 8, flat
button "50", 33, 120 45 10 8, flat
button "sop", 34, 156 62 37 12, flat
button "aop", 35, 156 35 37 12, flat
button "vop", 36, 156 8 37 12, flat
button "Enlever access", 37, 146 82 43 12, flat
button "" 38, 0 0 0 0, cancel
}
on 1:dialog:access:sclick:23:{
/msg chanserv access $did(22) add $did(2) $did(14)
}
on 1:dialog:access:sclick:24:{
/msg chanserv access $did(22) add $did(2) 3
}
on 1:dialog:access:sclick:25:{
/msg chanserv access $did(22) add $did(2) 5
}
on 1:dialog:access:sclick:26:{
/msg chanserv access $did(22) add $did(2) 10
}
on 1:dialog:access:sclick:27:{
/msg chanserv access $did(22) add $did(2) 20
}
on 1:dialog:access:sclick:28:{
/msg chanserv access $did(22) add $did(2) 9999
}
on 1:dialog:access:sclick:29:{
/msg chanserv access $did(22) add $did(2) 100
}
on 1:dialog:access:sclick:30:{
/msg chanserv access $did(22) add $did(2) 5000
}
on 1:dialog:access:sclick:31:{
/msg chanserv access $did(22) add $did(2) 1000
}
on 1:dialog:access:sclick:32:{
/msg chanserv access $did(22) add $did(2) 500
}
on 1:dialog:access:sclick:33:{
/msg chanserv access $did(22) add $did(2) 50
}
on 1:dialog:access:sclick:34:{
/msg chanserv sop $did(22) add $did(2)
}
on 1:dialog:access:sclick:35:{
/msg chanserv aop $did(22) add $did(2)
}
on 1:dialog:access:sclick:36:{
/msg chanserv vop $did(22) add $did(2)
}
on 1:dialog:access:sclick:16:{
/msg chanserv set $did(22) xop off
}
on 1:dialog:access:sclick:17:{
/msg chanserv set $did(22) xop on
}
on 1:dialog:access:sclick:37:{
/msg chanserv access $did(22) del $did(2)
}
dialog ban {
title "Ban, kick control"
size -1 -1 232 112
option dbu
text "Bannir qui?", 1, 4 7 31 8
edit "", 2, 39 6 55 10
text "Où?", 3, 95 7 25 8
edit "", 4, 117 6 61 10
text "Débannir qui?", 5, 4 18 34 8
edit "", 6, 39 16 55 10
text "Où", 7, 96 18 25 8
edit "", 8, 118 17 61 10
text "Kicker qui?", 9, 4 33 31 8
edit "", 10, 39 33 55 10
text "Où?", 11, 95 35 25 8
edit "", 12, 117 33 61 10
text "-----------------Kick & ban par Chanserv-----------------", 13, 40 53 110 8
text "Bannir qui?", 14, 4 66 31 8
text "Où", 15, 96 77 25 8
text "Où?", 16, 95 66 25 8
edit "", 17, 39 65 55 10
text "Débannir qui?", 18, 4 77 34 8
text "Kicker qui?", 19, 4 92 31 8
edit "", 20, 39 75 55 10
edit "", 21, 117 65 61 10
text "Où?", 22, 95 94 25 8
edit "", 23, 118 76 61 10
edit "", 24, 39 92 55 10
edit "", 25, 117 92 61 10
button "Ban!", 26, 185 6 37 10, flat
button "Unban", 27, 185 17 37 10, flat
button "Kick!", 28, 185 33 37 10, flat
button "Unban", 29, 186 76 37 10, flat
button "Ban!", 30, 186 65 37 10, flat
button "Kick!", 31, 186 92 37 10, flat
button "" 32, 0 0 0 0, cancel
}
on 1:dialog:ban:sclick:26:{
mode $did(4) +b $did(2)
}
on 1:dialog:ban:sclick:27:{
mode $did(4) -b $did(2)
}
on 1:dialog:ban:sclick:27:{
mode $did(4) +b $did(2)
}
on 1:dialog:ban:sclick:29:{
/msg chanserv unban $did(22) $did(19)0
}
on 1:dialog:ban:sclick:28:{
mode $did(4) +k $did(2)
}
on 1:dialog:ban:sclick:31:{
/msg chanserv kick $did(4) $did(2)
}
Conclusion :
Bye et bon scripting!
ps:Veuillez ne pas modifier ou ripper plz mici :)
Vous n'êtes pas encore membre ?
inscrivez-vous, c'est gratuit et ça prend moins d'une minute !
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.