SanZoR.Sr Posted December 19, 2006 Posted December 19, 2006 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. P R O U D T O B E F I N N I S H !!! Suomalainen
Shib Posted December 19, 2006 Posted December 19, 2006 For the 2387458236549823654926349234986235489625th time, click here
Aeron Posted December 19, 2006 Posted December 19, 2006 No. "Never argue with an idiot. They bring you down to their level and beat you with experience." "Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."
SDK Posted December 19, 2006 Posted December 19, 2006 wtf, delete this Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
lil Toady Posted December 19, 2006 Posted December 19, 2006 then find a !votekick script and change mta.kick to mta.ban...... At least you could try to do something yourself.. Do not PM me, im not going to read it anyway.
SanZoR.Sr Posted December 20, 2006 Author Posted December 20, 2006 I will try it ;P I just dont have any good votekick, what works. So if you have one, please post it here. P R O U D T O B E F I N N I S H !!! Suomalainen
ImJohnMclane Posted December 20, 2006 Posted December 20, 2006 I will try it ;PI 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 ] ] }
SanZoR.Sr Posted December 20, 2006 Author Posted December 20, 2006 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 P R O U D T O B E F I N N I S H !!! Suomalainen
vincedss Posted December 22, 2006 Posted December 22, 2006 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 ???
lil Toady Posted December 22, 2006 Posted December 22, 2006 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 Do not PM me, im not going to read it anyway.
SanZoR.Sr Posted December 29, 2006 Author Posted December 29, 2006 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. P R O U D T O B E F I N N I S H !!! Suomalainen
Squall Posted December 30, 2006 Posted December 30, 2006 why dont you make it YOURSELF or at least say Please
Recommended Posts