I've made this script to ban a player with dynamic IP, but the script does nothing when it executes pl_banner: please help me finding my mistake because I really cannot
here's the script
//----BANNER-SCRIPT TO BAN----// // INSTALL: write in the console '/showgui banner' and hit ENTER or remove // at the beginning of the next line (the menu will be bound to L) //bind L [showgui banner] //----VARIABLES----// tagfind = "TAG" createine iter = 0 isforever = 0 //xxxx// //----FUNCTIONS----// pl_banner = [ iter = -1 while [(= $isforever 1)] [ iter = (+ $iter 1) sleep (+ (* 5 $iter) 5) [ looplist cn (listclients 0) [ if (= (strstr (getclientname $cn) $tagfind) -1) [ //The player has not the tag we look for ] [ kick (getclientname $cn) ] ] ] ] ] //xxxx// //----GUI MENUS----// newgui "banner" [ guitext "Menu to permaban players with a " guitext "specific tag" guititle guicheckbox "Permaban (Check to use)" isforever [0 1 pl_banner] guilist [ guitext "Tag to search" guifield tagfind ] guibar guitext (format "^fPlayers with tag ^f3%1 ^f7are:" $tagfind) looplist cn (listclients 0) [ if (= (strstr (getclientname $cn) $tagfind) -1) [] [ guilist [ guitext (concatword $cn " ^f3" (getclientname $cn) "^f7: ") (getclienticon $cn) guibutton "kick " (concat "kick" $cn) guibutton "spectator " (concat "spectator" (= (isspectator $cn) 0) $cn) guibutton "swap team" (concat "setteam" $cn (if (strcmp (getclientteam $cn) "good") [result "evil"] [result "good"])) ] ] ] ] //xxxx/