Forum

> > CS2D > Scripts > Adminvote - action
Forums overviewCS2D overview Scripts overviewLog in to reply

English Adminvote - action

3 replies
To the start Previous 1 Next To the start

old Adminvote - action

AtomKuh
User Off Offline

Quote
Hello,

is it possible to change the action of this script:

1
2
3
4
5
6
7
8
9
10
11
12
13
adminlist = {86415}

addhook("vote","antivote")
function antivote(id,modus,votedplayer) 
     if modus == 1 then
          for _,adminUSGN in pairs(adminlist) do
               if adminUSGN == player(votedplayer,"usgn") then
                    parse("kick "..id.." Don't vote admins!")
                    msg("Don't vote "..player(votedplayer,"name").." or you will get kicked")
               end
          end
     end
end

The person who is voting me should not be able to vote me. The script just kicks him but I still get voted.

old Re: Adminvote - action

omg
User Off Offline

Quote
it doesnt really matter if u get voted because theyre kicked afterwards so their vote disappears. unless it doesnt!?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview