Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:.names *:#:{
- if ($userlvl(%u) == $rootlvl ) {
- if ($2 == on) {
- if ($readini(settings.ini,%ch,names) == enabled) {
- describe $chan .names command is already 4ON6
- }
- else {
- writeini settings.ini %ch names enabled
- describe $chan .names command 4ON6 now. (changed by $nick $+ )
- }
- }
- if ($2 == off) {
- if ($readini(settings.ini,%ch,names) == disabled) {
- describe $chan .names command is already 4OFF6.
- }
- else {
- writeini settings.ini %ch names disabled
- describe $chan .names command 4OFF6 now. (changed by $nick $+ )
- }
- halt
- :error
- reseterror
- describe $chan unknown option!
- halt
- }
- }
- }
- on *:TEXT:.names:#:{
- if ($readini(settings.ini,%ch,names) == enabled) {
- /names $chan
- set %canreplay 0
- timer 1 30 set %canreplay 1
- set -z %namesabuse 600
- writeini settings.ini %ch names disabled
- timer 1 600 writeini settings.ini %ch names enabled
- }
- else describe $chan hey stop spam,you can use next names in $round($calc(%namesabuse / 60),0) $+ minutes!
- }
- on *:TEXT:.names:#:{
- if ($readini(settings.ini,%ch,names) == enabled) {
- /names $chan
- set %canreplay 0
- timer 1 30 set %canreplay 1
- set -z %namesabuse 600
- writeini settings.ini %ch names disabled
- timer 1 600 writeini settings.ini %ch names enabled
- }
- else describe $chan hey stop spam,you can use next names in $round($calc(%namesabuse / 60),0) $+ minutes!
- }
- alias -l writewhonamesmenu {
- write -c Popup_Who_Names.txt Clear Window: clear $chr(36) $+ active
- write Popup_Who_Names.txt -
- write Popup_Who_Names.txt Close Window: window -c $chr(36) $+ active
- }
- alias modnameson {
- .enable #rawnames
- writewhonamesmenu
- echo -a Modified /NAMES activated.
- }
- alias modnamesoff {
- .disable #rawnames
- if ($group(#rawnames).status == off) && ($group(#rawwho).status == off) .remove Popup_Who_Names.txt
- echo -a Modified /NAMES deactivated.
- }
- alias modwhoon {
- .enable #rawwho
- writewhonamesmenu
- echo -a Modified /WHO activated.
- }
- alias modwhooff {
- .disable #rawwho
- if ($group(#rawnames).status == off) && ($group(#rawwho).status == off) .remove Popup_Who_Names.txt
- echo -a Modified /WHO deactivated.
- }
- #rawnames on
- raw 353:*: {
- if (!$window(/names)) window -ik0n1z @/names Popup_Who_Names.txt
- if (!$fline(@/names,*script made by Gummo*,1)) aline -hp 4 @/names Raw /NAMES script made by Gummo
- aline -hp @/names $3 $+ : $4-
- msg %ch [ $+ $remove($4-,@,+,Qfs,amoz,andy,kallek) $+ ]
- halt
- }
- raw 366:*: {
- if (!$window(/names)) window -ik0n1z @/names Popup_Who_Names.txt
- aline -hp @/names $2 $+ : End of /NAMES list.
- aline -hp @/names -
- echo -a $chan $+ : End of /NAMES list.
- halt
- }
- #rawnames end
- #rawwho on
- raw 352:*: {
- if (!$window(/who)) window -ik0n1z @/who Popup_Who_Names.txt
- if (!$fline(@/who,*script made by Gummo*,1)) aline -hp 4 @/who Raw /WHO script made by Gummo
- aline -hp @/who $+($2,: $6,!,$3,@,$4) * Realname: $9 * Server: $5
- halt
- }
- raw 315:*: {
- if (!$window(/who)) window -ik0n1z @/who Popup_Who_Names.txt
- aline -hp @/who $2 $+ : End of /WHO list.
- aline -hp @/who -
- echo -a $2 $+ : End of /WHO list.
- halt
- }
- #rawwho end
Add Comment
Please, Sign In to add comment