Jump to content

Please, if you can make votekick & voteban, read this!


SanZoR.Sr

Recommended Posts

Posted

I need !votekick & !voteban.

This will runs like that: When someone types !votekick player, it kick player if 50% votes are positive. And voteban must 90%. And commands must be !yes and !no. Please, make it for me, if possible. Sorry against my bad eng. Ty.

Posted
I will try it ;P

I just dont have any good votekick, what works. So if you have one, please post it here.

omg dont be newb. Next Time use SEARCH!!

on *:SIGNAL:mta.command:{ 
;Parameters: $1 = Server, $2 = ID, $3- = Text 
if ($3 == !voteban) { 
if (%vote.nick. [ $+ [ $1 ] ] == $null) { 
if ($ini($+(",$scriptdir,$1,.ini,"),ID $+ $4)) { 
set %vote.nick. [ $+ [ $1 ] ] $4 
set %vote.voters. [ $+ [ $1 ] ] $null 
mta.say $1 Voteban: Type "!vote" if u want  $mta.name($1,$4) shall be banned. [ $calc($left($did(mta,$1 $+ 21),2) / 2) votes needed][30 sec] 
.timervote [ $+ [ $1 ] ] 1 30 mta.vote $1 
} 
else mta.say $1 Give up an existing ID-number: "!voteban 
} 
else mta.say $1 VoteBan Is Running , Nick: $mta.name($1,%vote.nick. [ $+ [ $1 ] ]) 
} 
if (($3 == !vote) && (%vote.nick. [ $+ [ $1 ] ] != $null)) { 
if ($2 !isin %vote.voters. [ $+ [ $1 ] ]) { 
%vote.voters. [ $+ [ $1 ] ] = %vote.voters. [ $+ [ $1 ] ] $2 
mta.say $1 $numtok(%vote.voters. [ $+ [ $1 ] ],32) votes for $mta.name($1,%vote.nick. [ $+ [ $1 ] ]) 
if ($numtok(%vote.voters. [ $+ [ $1 ] ],32) >= $calc($left($did(mta,$1 $+ 21),2) / 2)) { 
mta.text $1 $mta.name($1,%vote.nick. [ $+ [ $1 ] ]) $numtok(%vote.voters. [ $+ [ $1 ] ],32) Votes! Your out! Banned! 
mta.ban $1 %vote.nick. [ $+ [ $1 ] ] 
unset %vote.nick. [ $+ [ $1 ] ] 
unset %vote.voters. [ $+ [ $1 ] ] 
.timervote [ $+ [ $1 ] ] off 
} 
} 
else mta.text $1 $mta.name($1,$2) You have already voted 
} 

} 
alias mta.vote { 
mta.text $1 VoteBan Cancelled!! - : $mta.name($1,%vote.nick. [ $+ [ $1 ] ]) 
unset %vote.nick. [ $+ [ $1 ] ] 
unset %vote.voters. [ $+ [ $1 ] ] 

}

:?

Posted

Eh, just a one problem. That didnt works whit MTA:MTA, cause it show something like this: !voteban <1-10>. Can you make some other command, what do same? e.g. if player wanna accept vote, he types !yes, if no !no. Os this possible? Sorry, im n00b1sh, thats why i cant make anything myself ;S

Posted

I get this too... for some reason GUS messes it up with the map rating command !votemap ... and I got no idea on how to prevent that ...

Maybe GUS should rename it to !ratemap ???

Posted
I get this too... for some reason GUS messes it up with the map rating command !votemap ... and I got no idea on how to prevent that ...

Maybe GUS should rename it to !ratemap ???

lot's of solutions for that, you can find in GUS the line

if (!vote* iswm $3) {

and change it to

if ($3 == !votemap) {

or you can just put the !votekick/!voteban code above the !votemap command

Posted

I need some votekick, what checks players online. If i e.g. type !votekick Player121, when Player121 isnt in the game, this script say something like that: Player121 isn't online or something like that. And Accept and Deny commands must to be !accept (Maybe Deny script doesnt needed) So, if this is possible, make me it. Ty.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...