DAsサーバーで使用しているAssist機能について紹介
Assist機能とは
優勢側のプレイヤーが劣勢側のチームに移る機能で、良心的なプレイヤーが劣勢側のチームに移り、ゲームを盛り上がるために使われるためにあります。
AdKatsの機能として定着してきましたが、ただ単にチーム移動するために使われたり、本来の目的とは別の使われ方をされるケースが多くなっています。(90%以上は不正Assist)
そこで、Assistの意味だけを抽出し、とにかく劣勢側へ移らせるスクリプトを用意しました。
仕様
- Assist可能なのは1ラウンドで20スロットまで
- !assistコマンドによりAssistスロットに追加
- チーム移動によりAssistスロットに強制追加
- 異常な勝率のプレイヤーをAssistスロットに強制追加
- 悪質なタグをAssistスロットに強制追加
- Assistスロットに登録されたプレイヤーのチームのチケット数が敵チームより多く、敵チームに空きスロットがある場合Kill, Say, Spawnをトリガーにチーム移動
ProconRulzのコード
本体 ※サーバーのメッセージを取得可能に要改造。詳しくはこちらの記事を参照して下さい。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
##### ProconRulz - DAs !Assist ver.1.8 by DA-xx-V ### 初期設定 On Spawn;ServerFirst; #サーバーの最大人数(司令官込) Set %ini_server_maxslot% 66; Set %ini_server_teamslot% %ini_server_maxslot% / 2;Log Set team slots %ini_server_teamslot%.; # without AdKats?(True or False) Set %ini_server_assistwithoutadkats% False; On Say;If %p% != Server;Admin;Text /passist;TargetPlayer; Say /passist %t%; On Say;If %p% != Server;Admin;Text /rassist;TargetPlayer; Say /rassist %t%; On Say;If %p% == Server;Text /passist;TargetPlayer;If %ini_server_passist_white_list[%t%]% != True; If %server_useassist[%t%]% == True;Say %t%, You are already in the assist slot...; If %server_useassist[%t%]% != True;If %server_assistplayer[0]% == 0;Set %server_assistplayer[0]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [0]; If %server_useassist[%t%]% != True;If %server_assistplayer[1]% == 0;Set %server_assistplayer[1]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [1]; If %server_useassist[%t%]% != True;If %server_assistplayer[2]% == 0;Set %server_assistplayer[2]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [2]; If %server_useassist[%t%]% != True;If %server_assistplayer[3]% == 0;Set %server_assistplayer[3]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [3]; If %server_useassist[%t%]% != True;If %server_assistplayer[4]% == 0;Set %server_assistplayer[4]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [4]; If %server_useassist[%t%]% != True;If %server_assistplayer[5]% == 0;Set %server_assistplayer[5]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [5]; If %server_useassist[%t%]% != True;If %server_assistplayer[6]% == 0;Set %server_assistplayer[6]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [6]; If %server_useassist[%t%]% != True;If %server_assistplayer[7]% == 0;Set %server_assistplayer[7]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [7]; If %server_useassist[%t%]% != True;If %server_assistplayer[8]% == 0;Set %server_assistplayer[8]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [8]; If %server_useassist[%t%]% != True;If %server_assistplayer[9]% == 0;Set %server_assistplayer[9]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [9]; If %server_useassist[%t%]% != True;If %server_assistplayer[10]% == 0;Set %server_assistplayer[10]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [10]; If %server_useassist[%t%]% != True;If %server_assistplayer[11]% == 0;Set %server_assistplayer[11]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [11]; If %server_useassist[%t%]% != True;If %server_assistplayer[12]% == 0;Set %server_assistplayer[12]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [12]; If %server_useassist[%t%]% != True;If %server_assistplayer[13]% == 0;Set %server_assistplayer[13]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [13]; If %server_useassist[%t%]% != True;If %server_assistplayer[14]% == 0;Set %server_assistplayer[14]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [14]; If %server_useassist[%t%]% != True;If %server_assistplayer[15]% == 0;Set %server_assistplayer[15]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [15]; If %server_useassist[%t%]% != True;If %server_assistplayer[16]% == 0;Set %server_assistplayer[16]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [16]; If %server_useassist[%t%]% != True;If %server_assistplayer[17]% == 0;Set %server_assistplayer[17]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [17]; If %server_useassist[%t%]% != True;If %server_assistplayer[18]% == 0;Set %server_assistplayer[18]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [18]; If %server_useassist[%t%]% != True;If %server_assistplayer[19]% == 0;Set %server_assistplayer[19]% %t%;Say %t%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%t%]% True;Log %t%, use !assist. set [19]; If %server_useassist[%t%]% != True;PlayerBoth The assist slot is currently full. Please try later...;Log %t%, use !assist. assist slots is full...; On Say;If %p% != Server;Text !assist,/assist; If %server_useassist[%p%]% == True;Say %p%, You are already in the assist slot...; If %server_useassist[%p%]% != True;If %server_assistplayer[0]% == 0;Set %server_assistplayer[0]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [0]; If %server_useassist[%p%]% != True;If %server_assistplayer[1]% == 0;Set %server_assistplayer[1]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [1]; If %server_useassist[%p%]% != True;If %server_assistplayer[2]% == 0;Set %server_assistplayer[2]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [2]; If %server_useassist[%p%]% != True;If %server_assistplayer[3]% == 0;Set %server_assistplayer[3]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [3]; If %server_useassist[%p%]% != True;If %server_assistplayer[4]% == 0;Set %server_assistplayer[4]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [4]; If %server_useassist[%p%]% != True;If %server_assistplayer[5]% == 0;Set %server_assistplayer[5]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [5]; If %server_useassist[%p%]% != True;If %server_assistplayer[6]% == 0;Set %server_assistplayer[6]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [6]; If %server_useassist[%p%]% != True;If %server_assistplayer[7]% == 0;Set %server_assistplayer[7]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [7]; If %server_useassist[%p%]% != True;If %server_assistplayer[8]% == 0;Set %server_assistplayer[8]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [8]; If %server_useassist[%p%]% != True;If %server_assistplayer[9]% == 0;Set %server_assistplayer[9]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [9]; If %server_useassist[%p%]% != True;If %server_assistplayer[10]% == 0;Set %server_assistplayer[10]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [10]; If %server_useassist[%p%]% != True;If %server_assistplayer[11]% == 0;Set %server_assistplayer[11]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [11]; If %server_useassist[%p%]% != True;If %server_assistplayer[12]% == 0;Set %server_assistplayer[12]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [12]; If %server_useassist[%p%]% != True;If %server_assistplayer[13]% == 0;Set %server_assistplayer[13]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [13]; If %server_useassist[%p%]% != True;If %server_assistplayer[14]% == 0;Set %server_assistplayer[14]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [14]; If %server_useassist[%p%]% != True;If %server_assistplayer[15]% == 0;Set %server_assistplayer[15]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [15]; If %server_useassist[%p%]% != True;If %server_assistplayer[16]% == 0;Set %server_assistplayer[16]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [16]; If %server_useassist[%p%]% != True;If %server_assistplayer[17]% == 0;Set %server_assistplayer[17]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [17]; If %server_useassist[%p%]% != True;If %server_assistplayer[18]% == 0;Set %server_assistplayer[18]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [18]; If %server_useassist[%p%]% != True;If %server_assistplayer[19]% == 0;Set %server_assistplayer[19]% %p%;Say %p%, Thank you for your assist. You are set in assist slot...;Set %server_useassist[%p%]% True;Log %p%, use !assist. set [19]; If %server_useassist[%p%]% != True;PlayerBoth The assist slot is currently full. Please try later...;Log %p%, use !assist. assist slots is full...; On Kill;If %ini_server_assistwithoutadkats% == True;If %server_useassist[%p%]% == True; If %ptk% == 1;If %server_team_score[1]% > %server_team_score[2]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %p% 2 0 true;Say %p%, Moved the Assist Player.;Say %p%, Moved assist player...;Log %p%, Moved assist player...; If %ptk% == 2;If %server_team_score[2]% > %server_team_score[1]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %p% 1 0 true;Say %p%, Moved the Assist Player.;Say %p%, Moved assist player...;Log %p%, Moved assist player...; If %server_assistplayer[0]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[1]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[2]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[3]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[4]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[5]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[6]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[7]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[8]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[9]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[10]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[11]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[12]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[13]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[14]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[15]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[16]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[17]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[18]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[19]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 1 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[0]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[1]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[2]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[3]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[4]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[5]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[6]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[7]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[8]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[9]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[10]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[11]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[12]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[13]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[14]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[15]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[16]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[17]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[18]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; If %server_assistplayer[19]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %v% 2 0 true;Say %v%, Moved the Assist Player.;Log %v%, Moved assist player...; On Kill;If %ini_server_assistwithoutadkats% == False;If %server_useassist[%p%]% == True; If %ptk% == 1;If %server_team_score[1]% > %server_team_score[2]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %p%;Say %p%, Moved assist player...;Log %p%, Moved assist player...; If %ptk% == 2;If %server_team_score[2]% > %server_team_score[1]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %p%;Say %p%, Moved assist player...;Log %p%, Moved assist player...; If %server_assistplayer[0]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[1]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[2]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[3]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[4]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[5]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[6]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[7]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[8]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[9]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[10]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[11]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[12]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[13]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[14]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[15]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[16]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[17]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[18]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[19]% == %v%;If %ptk% == 1;If %server_team_score[1]% < %server_team_score[2]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[0]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[1]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[2]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[3]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[4]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[5]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[6]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[7]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[8]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[9]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[10]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[11]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[12]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[13]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[14]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[15]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[16]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[17]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[18]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; If %server_assistplayer[19]% == %v%;If %ptk% == 2;If %server_team_score[2]% < %server_team_score[1]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %v%;Say %v%, Moved assist player...;Log %v%, Moved assist player...; On Say;If %server_useassist[%p%]% == True; If %ini_server_assistwithoutadkats% == False;If %ptk% == 1;If %server_team_score[1]% > %server_team_score[2]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %p%;Say %p%, Moved assist player...;Log %p%, Moved assist player...; If %ini_server_assistwithoutadkats% == False;If %ptk% == 2;If %server_team_score[2]% > %server_team_score[1]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %p%;Say %p%, Moved assist player...;Log %p%, Moved assist player...; If %ini_server_assistwithoutadkats% == True;If %ptk% == 1;If %server_team_score[1]% > %server_team_score[2]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %p% 2 0 true;Say %p%, Moved the Assist Player.;Log %p%, Moved assist player...; If %ini_server_assistwithoutadkats% == True;If %ptk% == 2;If %server_team_score[2]% > %server_team_score[1]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %p% 1 0 true;Say %p%, Moved the Assist Player.;Log %p%, Moved assist player...; On Spawn;If %server_useassist[%p%]% == True; If %ini_server_assistwithoutadkats% == False;If %ptk% == 1;If %server_team_score[1]% > %server_team_score[2]%;If %ts2% <= %ini_server_teamslot% - 2;Say /fmove %p%;Say %p%, Moved assist player...;Log %p%, Moved assist player...; If %ini_server_assistwithoutadkats% == False;If %ptk% == 2;If %server_team_score[2]% > %server_team_score[1]%;If %ts1% <= %ini_server_teamslot% - 2;Say /fmove %p%;Say %p%, Moved assist player...;Log %p%, Moved assist player...; If %ini_server_assistwithoutadkats% == True;If %ptk% == 1;If %server_team_score[1]% > %server_team_score[2]%;If %ts2% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %p% 2 0 true;Say %p%, Moved the Assist Player.;Log %p%, Moved assist player...; If %ini_server_assistwithoutadkats% == True;If %ptk% == 2;If %server_team_score[2]% > %server_team_score[1]%;If %ts1% <= %ini_server_teamslot% - 2;Exec admin.movePlayer %p% 1 0 true;Say %p%, Moved the Assist Player.;Log %p%, Moved assist player...; On Say;If %p% == Server;Text /rassist;TargetPlayer;Set %ini_server_passist_white_list[%t%]% True; If %server_assistplayer[0]% == %t%;Set %server_assistplayer[0]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[0]%; If %server_assistplayer[1]% == %t%;Set %server_assistplayer[1]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[1]%; If %server_assistplayer[2]% == %t%;Set %server_assistplayer[2]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[2]%; If %server_assistplayer[3]% == %t%;Set %server_assistplayer[3]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[3]%; If %server_assistplayer[4]% == %t%;Set %server_assistplayer[4]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[4]%; If %server_assistplayer[5]% == %t%;Set %server_assistplayer[5]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[5]%; If %server_assistplayer[6]% == %t%;Set %server_assistplayer[6]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[6]%; If %server_assistplayer[7]% == %t%;Set %server_assistplayer[7]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[7]%; If %server_assistplayer[8]% == %t%;Set %server_assistplayer[8]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[8]%; If %server_assistplayer[9]% == %t%;Set %server_assistplayer[9]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[9]%; If %server_assistplayer[10]% == %t%;Set %server_assistplayer[10]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[10]%; If %server_assistplayer[11]% == %t%;Set %server_assistplayer[11]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[11]%; If %server_assistplayer[12]% == %t%;Set %server_assistplayer[12]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[12]%; If %server_assistplayer[13]% == %t%;Set %server_assistplayer[13]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[13]%; If %server_assistplayer[14]% == %t%;Set %server_assistplayer[14]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[14]%; If %server_assistplayer[15]% == %t%;Set %server_assistplayer[15]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[15]%; If %server_assistplayer[16]% == %t%;Set %server_assistplayer[16]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[16]%; If %server_assistplayer[17]% == %t%;Set %server_assistplayer[17]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[17]%; If %server_assistplayer[18]% == %t%;Set %server_assistplayer[18]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[18]%; If %server_assistplayer[19]% == %t%;Set %server_assistplayer[19]% 0;Log %t%, Remove assist player... added white list... %server_assistplayer[19]%; On Leave;If %ini_server_passist_white_list[%p%]% == True;Set %ini_server_passist_white_list[%p%]% 0; |
InsaneLimitsのコード
チーム移動者をAssistスロットに追加するLimit
Set limit to evaluate OnTeamChange
Set action to None
Set first_check to this Code:
1 2 |
plugin.ConsoleWrite(player.Name + " team switch."); plugin.SendGlobalMessage("/passist "+ player.Name); |
異常な高勝率プレイヤーを強制追加するLimit
Set limit to evaluate OnSpawn
Set action to None
Set first_check to this Expression:
1 |
(player.Wins + player.Losses >= 100) |
Set second_check to this Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
double totalRounds = player.Wins + player.Losses; double winper = player.Wins / totalRounds * 100; //plugin.ConsoleWrite(player.Name + " Winning percentage " + winper); if (!player.RoundData.issetBool("Winschecked")) player.RoundData.setBool("Winschecked", false); if (player.RoundData.getBool("Winschecked")) return false; else{ if (winper >= 80) { plugin.ConsoleWrite(player.Name + " High Winning percentage " + winper); plugin.SendGlobalMessage("/passist "+ player.Name); } } player.RoundData.setBool("Winschecked", true); |
悪質なクランタグ使用者を強制追加するLimit
Set limit to evaluate OnSpawn
Set action to None
Set first_check to this Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
List<String> bad_tags = new List<String>(); // Set bad tags bad_tags.Add("tag1"); bad_tags.Add("tag2"); bad_tags.Add("tag3"); bad_tags.Add("tag4"); if (!player.RoundData.issetBool("badtagchecked")) player.RoundData.setBool("badtagchecked", false); if (player.RoundData.getBool("badtagchecked")) return false; else{ foreach (String bad_tag in bad_tags) if (player.Tag == bad_tag) { plugin.ConsoleWrite(player.Name + " bad tag " + player.Tag); plugin.SendGlobalMessage("/passist "+ player.Name); } } player.RoundData.setBool("badtagchecked", true); |