• Welcome to Vice City Multiplayer.
 

Working votekick for sansan

Started by Force, July 10, 2008, 07:40:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.




Tamas

I puted the codes to the following locations:

Quote;--- misc aliases
;--- account shite
;--- 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!
  }
}

event.part code:

Quote
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
  .signal vcmp.event.delplayer $1 $2
  if (%echolevel > 0) vcmp.echo 3**03 $1 $2 03left the game. $vcmp.quitreason($3)
}

And when i go to ingame than type !votekick nothing happen :(

TanaX01


K.I.S.S

this script dosnt work, i tried it myself

Force

It works fine so it has to be something your doing wrong  :-X

If it didn't work I would not have posted it =\

bazza

Quote from: [SDT]F_T_F0RC3 on July 27, 2008, 02:48:42 AM
It works fine so it has to be something your doing wrong  :-X

If it didn't work I would not have posted it =\

it dosnt work
do a better one

ReVilo


Nemesis2500



thijn



bazza

#26
Quote from: quantumbeep on July 10, 2008, 03:14:26 AM

I was bored, so i decided to whip up a simple votekick script for GUS

http://lukerudge.ath.cx/votekick.html



ok sorry but my team mate still needs rulk to put website up for gus one

Tamas

If its work fine than what i puted to the wrong place?
The vote kick alias , or the vcmp.event.part?

Force

You need to put the following code at teh bottom of the part signal:


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
}

Tamas