Forum

> > CS2D > Scripts > Disable vote for some players (lua)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Disable vote for some players (lua)

4 replies
To the start Previous 1 Next To the start

old Disable vote for some players (lua)

limonata
User Off Offline

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

old Re: Disable vote for some players (lua)

VADemon
User Off Offline

Quote
cs2d lua hook vote - no return value = no way
But wait...

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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview