ruby159 Posted March 31, 2007 Share Posted March 31, 2007 hi, we have a !vkick at our server but everone did it (abuse) I'am looking for a script that you can 2 times vkick and if you did 3 time vkick that you kicked from the server sorry for my bad english gr ruby Link to comment
DJScripts Posted March 31, 2007 Share Posted March 31, 2007 Ruby vraag om een script dat als iemand de vkick voor niks gebuikt zoals noob of camp dat ie dan een waarschuwing krijgt (P.S. ik ben uD|DJFrankie|NL) Link to comment
ruby159 Posted March 31, 2007 Author Share Posted March 31, 2007 Ruby vraag om een script dat als iemand de vkick voor niks gebuikt zoals noob of camp dat ie dan een waarschuwing krijgt (P.S. ik ben uD|DJFrankie|NL) dat weet k dat je dat ben maar bb vroeg dat aan mij en k mog het forum gebruiken dus k w8 op antwoord Link to comment
DJScripts Posted March 31, 2007 Share Posted March 31, 2007 Ruby vraag om een script dat als iemand de vkick voor niks gebuikt zoals noob of camp dat ie dan een waarschuwing krijgt (P.S. ik ben uD|DJFrankie|NL) dat weet k dat je dat ben maar bb vroeg dat aan mij en k mog het forum gebruiken dus k w8 op antwoord dat moest ik doen voor dat !wcommands Link to comment
DJScripts Posted March 31, 2007 Share Posted March 31, 2007 Ruby vraag om een script dat als iemand de vkick voor niks gebuikt zoals noob of camp dat ie dan een waarschuwing krijgt (P.S. ik ben uD|DJFrankie|NL) dat weet k dat je dat ben maar bb vroeg dat aan mij en k mog het forum gebruiken dus k w8 op antwoord dat moest ik doen voor dat !wcommands Link to comment
stylo Posted March 31, 2007 Share Posted March 31, 2007 If you talk english some1 can help you if not .. than just dont ask or something i am dutch to but i talk english so every1 can see what i write Link to comment
ruby159 Posted March 31, 2007 Author Share Posted March 31, 2007 If you talk english some1 can help you if not ..than just dont ask or something i am dutch to but i talk english so every1 can see what i write yes but he is a friend it dont go about the question Link to comment
lil Toady Posted March 31, 2007 Share Posted March 31, 2007 Then find another place to talk, maybe PMs? This is an english only forum Link to comment
BetaDevil Posted March 31, 2007 Share Posted March 31, 2007 maybe you can post the vkick.... Link to comment
ruby159 Posted March 31, 2007 Author Share Posted March 31, 2007 maybe you can post the vkick.... jah wait i search it for you yeah i found it alias prs.votekick { if ($3 == !votemap) votemap $1- elseif ($prs.votekicking($1) != yes) mta.pm $1 $2 Votekicking Is Currently Disabled. elseif ($prs.players($1) < 4) mta.pm $1 $2 Error: Not Enough Players - 4 needed. else { var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)), %b = $chr(40) $+ $2 $+ $chr(41) if ($3 == !votekick) { if ($prs.votenick($1) != $null) mta.pm $1 $2 Error: Votekick Already Running on $mta.nick($1,$prs.votenick($1)) elseif (%a == $2) mta.pm $1 $2 Error: !votekick else { !hadd prstemp votenick %a !hadd prstemp voters %b mta.text $1 Type !vote If You Want $mta.nick($1,%a) Kicking. mta.text $1 Total Votes Needed: $ceil($calc($prs.players($1) / 2)) .timervotekick 1 90 prs.endvotekick $1- } } elseif ($3 == !vote) { if (%b isin $hget(prstemp,voters)) mta.pm $1 $2 Error: You Have Already Voted! else { !hadd prstemp voters $hget(prstemp,voters) $+ %b mta.text $1 Total Votes: $numtok($hget(prstemp,voters),41) $+ / $+ $ceil($calc($prs.players($1) / 2)) prs.checkvotes $1- } } } } alias prs.checkvotes { if ($numtok($hget(prstemp,voters),41) == $ceil($calc($prs.players($1) / 2))) { mta.text $1 Kicking $mta.nick($1,$prs.votenick($1)) mta.kick $1 $prs.votenick($1) } } alias prs.endvotekick { if ($prs.votenick($1) != $null) mta.text $1 Votekick Ended On $mta.nick($1,$hget(prstemp,votenick)) !hdel prstemp voters !hdel prstemp votenick } so here is it i hope that you can make a script that you can 2 time vkick Link to comment
Keslertje2005 Posted March 31, 2007 Share Posted March 31, 2007 I think its better to put a warning with: You have reached your votekick limit. Because being kicked when you want to kick someone else is not such a good idea Link to comment
BetaDevil Posted April 1, 2007 Share Posted April 1, 2007 I never scripted this way before, but thiss will work (I hope)... alias prs.votekick { if ($3 == !votemap) votemap $1- elseif ($prs.votekicking($1) != yes) mta.pm $1 $2 Votekicking Is Currently Disabled. elseif ($prs.players($1) < 4) mta.pm $1 $2 Error: Not Enough Players - 4 needed. else { var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)), %b = $chr(40) $+ $2 $+ $chr(41) if ($3 == !votekick) { if ($prs.votenick($1) != $null) mta.pm $1 $2 Error: Votekick Already Running on $mta.nick($1,$prs.votenick($1)) elseif (%a == $2) mta.pm $1 $2 Error: !votekick else { !hadd prstemp $mta.nick($1,$2) $calc($hget(prstemp,$mta.nick($1,$2)) + 1) if ($hget(prstemp,$mta.nick($1,$2)) >= 3) mta.pm $1 $2 Error: You votekick to much else { !hadd prstemp votenick %a !hadd prstemp voters %b mta.text $1 Type !vote If You Want $mta.nick($1,%a) Kicking. mta.text $1 Total Votes Needed: $ceil($calc($prs.players($1) / 2)) .timervotekick 1 90 prs.endvotekick $1- } } } elseif ($3 == !vote) { if (%b isin $hget(prstemp,voters)) mta.pm $1 $2 Error: You Have Already Voted! else { !hadd prstemp voters $hget(prstemp,voters) $+ %b mta.text $1 Total Votes: $numtok($hget(prstemp,voters),41) $+ / $+ $ceil($calc($prs.players($1) / 2)) prs.checkvotes $1- } } } } alias prs.checkvotes { if ($numtok($hget(prstemp,voters),41) == $ceil($calc($prs.players($1) / 2))) { mta.text $1 Kicking $mta.nick($1,$prs.votenick($1)) mta.kick $1 $prs.votenick($1) } } alias prs.endvotekick { if ($prs.votenick($1) != $null) mta.text $1 Votekick Ended On $mta.nick($1,$hget(prstemp,votenick)) !hdel prstemp voters !hdel prstemp votenick } on *:SIGNAL:mta.disconnect: { !hdel prstemp $mta.nick($1,$2) } Link to comment
Keslertje2005 Posted April 1, 2007 Share Posted April 1, 2007 hmmm it doenst really work Link to comment
thomeke Posted April 1, 2007 Share Posted April 1, 2007 haha ruby an dj this is big fun with you guys always asking for trubble Link to comment
stylo Posted April 1, 2007 Share Posted April 1, 2007 I think its better to put a warning with: You have reached your votekick limit. Because being kicked when you want to kick someone else is not such a good idea I agree If you got kicked then.. they proberly wont come back..... Link to comment
BetaDevil Posted April 1, 2007 Share Posted April 1, 2007 haha ruby an dj this is big fun with you guys always asking for trubblelol, you need to say that (and yeah, I have something against YOU, Team.D and uD).Sorry for this admins. Link to comment
2paq Posted April 8, 2007 Share Posted April 8, 2007 how to do something that: $+(!.timermta.ping.time.,%a) 1 5 $iif(($mta.nick($1,%a) != -1) && ($mta.ping($1,%a) >= %gus.maxping.2rt),mta.text $1 Kicking $mta.nick($1,%a) - Ping: $mta.ping($1,%a) - Max Ping: %gus.maxping.2rt $+(!.timermta.ping.kick.,%a) 1 3 $iif($mta.nick($1,%a) != -1,mta.kick $1 %a)) GUS script: gus.pingkick + this check the ping again next to 5s then say Kicking [2RT]2paq - Ping: 245 - Max Ping: 200 and kick next to 3s Edit: this works: $+(!.timermta.ping.time.,%a) 1 10 $iif(($mta.nick($1,%a) != -1) && ($mta.ping($1,%a) >= %gus.maxping.2rt),mta.text $1 Kicking $mta.nick($1,%a) - Ping: $mta.ping($1,%a) - Max Ping: %gus.maxping.2rt) $+(!.timermta.ping.time2.,%a) 1 10 $iif(($mta.nick($1,%a) != -1) && ($mta.ping($1,%a) >= %gus.maxping.2rt),$+(!.timermta.ping.kick.,%a) 1 3 $iif($mta.nick($1,%a) != -1,mta.kick $1 %a)) } but how to do that easly?? Edit 2: I done that myself ... (if I wont wait for your help ) It worked ... on *:SIGNAL:mta.connect: { !.timerping off if ($gus.maxping($1) isnum) !.timerping 0 60 gus.pingkick $1 } alias gus.pingkick { var %a = 0 var %gus.maxping.2rt = $iif($readini($scriptdir $+ admin.ini,PING,2rt),$v1,Off) var %gus.maxping.lvl = $iif($readini($scriptdir $+ admin.ini,PING,lvl),$v1,Off) var %gus.maxping.max = $iif($readini($scriptdir $+ admin.ini,PING,max),$v1,Off) while (%a = 4) && ($mta.ping($1,%a) > %gus.maxping.2rt) && ($mta.ping($1,%a) != 0)) { mta.pm $1 %a Your ping: $mta.ping($1,%a) - Max Ping: %gus.maxping.2rt $+(!.timermta.ping.time.,%a) 1 50 gus.pingkick2 $1 %a } elseif (($gus.level($1,%a) <4>= 1) && ($mta.ping($1,%a) > %gus.maxping.lvl) && ($mta.ping($1,%a) != 0)) { mta.pm $1 %a Your ping: $mta.ping($1,%a) - Max Ping: %gus.maxping.lvl $+(!.timermta.ping.time.,%a) 1 35 gus.pingkick2 $1 %a } elseif (($gus.level($1,%a) <1> %gus.maxping.max) && ($mta.ping($1,%a) != 0)) { mta.pm $1 %a Your ping: $mta.ping($1,%a) - Max Ping: %gus.maxping.max $+(!.timermta.ping.time.,%a) 1 15 gus.pingkick2 $1 %a } } !inc %a } } alias gus.pingkick2 { var %gus.maxping.2rt = $iif($readini($scriptdir $+ admin.ini,PING,2rt),$v1,Off) var %gus.maxping.lvl = $iif($readini($scriptdir $+ admin.ini,PING,lvl),$v1,Off) var %gus.maxping.max = $iif($readini($scriptdir $+ admin.ini,PING,max),$v1,Off) if ($mta.nick($1,$2) != -1) { if (($gus.level($1,$2) >= 4) && ($mta.ping($1,$2) > %gus.maxping.2rt) && ($mta.ping($1,$2) != 0)) { mta.text $1 Kicking $mta.nick($1,$2) - Ping: $mta.ping($1,$2) - Max Ping: %gus.maxping.2rt $+(!.timermta.ping.kick.,$2) 1 3 $iif($mta.nick($1,$2) != -1,mta.kick $1 $2) } elseif (($gus.level($1,$2) <4>= 1) && ($mta.ping($1,$2) > %gus.maxping.lvl) && ($mta.ping($1,$2) != 0)) { mta.text $1 Kicking $mta.nick($1,$2) - Ping: $mta.ping($1,$2) - Max Ping: %gus.maxping.lvl $+(!.timermta.ping.kick.,$2) 1 3 $iif($mta.nick($1,$2) != -1,mta.kick $1 $2) } elseif (($gus.level($1,$2) <1> %gus.maxping.max) && ($mta.ping($1,$2) != 0)) { mta.text $1 Kicking $mta.nick($1,$2) - Ping: $mta.ping($1,$2) - Max Ping: %gus.maxping.max $+(!.timermta.ping.kick.,$2) 1 3 $iif($mta.nick($1,$2) != -1,mta.kick $1 $2) } } } Now you hawe tree group's: - user, I set them 200ms) - admin (mIRC lvl <4> 3), set 300ms Pings are check two time and then kick! First kick user, the admin ... Link to comment
Recommended Posts