0 Members and 1 Guest are viewing this topic.
on *:SIGNAL:vcmp.event.gamecmd { elseif ($2 == !votekick) { if ($hget(vcmp,loggedin. $+ %id) < 2) { vcmp.adminmsg %id You must be Admin Level 2 or higher to attempt this command. } elseif ($hget(VoteKick,started) == started) { vcmp.adminmsg %id There is already a vote kick in progress! } else { !hadd -m VoteKick started started !hadd -m ToKick $vcmp.hgetname($3) voting vcmp.adminchat Vote Kick started for $vcmp.hgetname($3) $+ , ID: $3 - Votes Required: 3 - Reason: $iif($4-,$v1,None) $+ , By Admin: $iif($1,$v1,Unknown) vcmp.adminchat Auto Recieved one vote! Two more are needed, type !vote <player id being kicked> to do so vcmp.vkick $3 $vcmp.hgetname(%id) $4- } } elseif ($2 == !vote) { if ($hget(VotedTable,$vcmp.hgetname(%id)) == voted) { vcmp.adminmsg %id You have already voted! } elseif ($hget(ToKick,$vcmp.hgetname($3)) != voting) { vcmp.adminmsg %id This player is not up for a vote kick! } else { !hadd -m VotedTable $vcmp.hgetname(%id) voted vcmp.vkick $3 $vcmp.hgetname(%id) $4- } }
;--- Vote Kick Alias'alias vcmp.votes !return $iif($readini(vcmp.votes.ini,VOTES,$vcmp.hgetname($1)),$v1,0)alias vcmp.vkick { if ($vcmp.votes($1) >= 2) { !writeini -n vcmp.votes.ini VOTES $vcmp.hgetname($1) 3 vcmp.adminchat Kicking $vcmp.hgetname($1) - Reason: Vote - Kicked $+ , By Admin: $iif($2,$v1,Unknown) vcmp.kick $1 hdel ToKick $1 } else { !writeini -n vcmp.votes.ini VOTES $vcmp.hgetname($1) $calc($vcmp.votes($1) + 1) vcmp.adminchat $vcmp.votes($1) $+ /3 votes recieved! }}
on *:SIGNAL:vcmp.event.part:{ if ($hget(ToKick,$2) == voting) { vcmp.adminchat Vote Kick cancelled for $2 $+ , Reason: Left the server! !writeini -n vcmp.votes.ini VOTES $2 0 remini vcmp.votes.ini VOTES $2 hdel ToKick $2 hfree VoteKick hdel VotedTable $2 }
doesnt work for mee >:|
;--- Vote Kick Alias
Hey(Please move this topic if its not in the right place )
Thanks!
I was bored, so i decided to whip up a simple votekick script for GUShttp://lukerudge.ath.cx/votekick.html
Quote from: thijn on July 18, 2008, 08:51:29 pmThanks!you use gus:Quote from: quantumbeep on July 10, 2008, 04:14:26 amI was bored, so i decided to whip up a simple votekick script for GUShttp://lukerudge.ath.cx/votekick.htmlhttp://lukerudge.ath.cx/votekick.html
Quote from: TanaX01 on July 18, 2008, 09:30:50 pmQuote from: thijn on July 18, 2008, 08:51:29 pmThanks!you use gus:Quote from: quantumbeep on July 10, 2008, 04:14:26 amI was bored, so i decided to whip up a simple votekick script for GUShttp://lukerudge.ath.cx/votekick.htmlhttp://lukerudge.ath.cx/votekick.html link dosnt workanyone have a mirror