211
mIRC/pawn Scripting / Re: killed
« on: July 13, 2008, 11:35:11 am »
Tanax what you posted was never the problem, your the one thats going off topic.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
vcmp.echo $vcmp.hgetname(%idk) killed $vcmp.hgetname(%idd) $par($vcmp.deathreason($4))
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
}
that's the same thing for what he wants to do .-.