Forum

> > CS2D > Scripts > Adminvote - action
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Adminvote - action

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Adminvote - action

AtomKuh
User Off Offline

Zitieren
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.

alt Re: Adminvote - action

omg
User Off Offline

Zitieren
it doesnt really matter if u get voted because theyre kicked afterwards so their vote disappears. unless it doesnt!?
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht