English Disable vote for some players (lua)

4 replies
Goto Page
To the start Previous 1 Next To the start
Up
limonata
User
Offline Off
Hello, I need a script like this. I saw it in Happy Camper's admin script.

members = {50998}

Here are my members.

And who will vote them he will be kicked.

If some body vote ID 50998 he will be kicked. Thanks for your help.
26.05.13 05:08:16 pm
Up
gotya2
GAME BANNED
Offline Off
I don't see any practical use for this script.
It only promotes abuse by the members in your lua script.
26.05.13 05:26:12 pm
Up
limonata
User
Offline Off
Why? Also, I musn't use it. I will be learn how we can control vote command etc. too
26.05.13 08:26:04 pm
Up
VADemon
User
Offline Off
cs2d lua hook vote - no return value = no way
But wait...

Code:
1
2
3
4
5
6
7
8
9
addhook("vote","vote")
function vote(fromID, mode, param)
     if mode == 1 then--player
          if player(param, "usgn")==9000 then
               msg2(fromID, "You tried to kick an incredible person!")
               --parse kick
          end
     end
end

idc it may work. But I wouldn't kick people for trying to vote kick an asshole
26.05.13 09:05:00 pm
Up
limonata
User
Offline Off
okay thanks i will try it.
To the start Previous 1 Next To the start