Forum

> > CS2D > Scripts > Kill Menu buttons not working
Forums overviewCS2D overview Scripts overviewLog in to reply

English Kill Menu buttons not working

4 replies
To the start Previous 1 Next To the start

old Kill Menu buttons not working

Louie
User Off Offline

Quote
So i tried this kick command in this thread http://unrealsoftware.de/forum_posts.php?post=357220#jn
Though i edited it a bit so it will be kill instead of kick and it worked,but when i tried to merge it with my Admin script then the shit started,the kill menu doesn't even show.Here's my code everything works fine except for the kill menu.
More >

EDIT:
hmm after some testing and investigating,apparently the kill,kick menu doesn't want to show up if it needs 2 menus(like Server menu > Players > Kill/Kick)
but when it only needs 1 menu(like Server Menu > Kick/Kill) then it works wtf?
edited 2×, last 06.02.15 12:41:41 pm

old Re: Kill Menu buttons not working

Bowlinghead
User Off Offline

Quote
I dont know...
It seems like at this part is the error:
Part >


For example you want to kill the player with the ID 15.
It is the 7th button of the Kill Page 2.
Then you use 7+8 (=15) as parameter for your kill function. It is right.
But if I want to kill the ID 18 (2nd button on Kill Page 3) then the parameter is 2+8 which is 10. The player with the ID 10 gets killed.

old Re: Kill Menu buttons not working

Louie
User Off Offline

Quote
@user Bowlinghead: I see...
and also i saw alot of glitches in it,the kill and kick and ban menu was working yesterday and now only the kill menu is working when i press/click the menu of the kick or ban menu then the menu just closes,is there any other way to create a kick/kill/slap/ or ban menu? cuz mine has alot of glitches
EDIT: And also(so i dont need to create another topic/thread) i've been getting this error in another script that im making Bad Argument #1 to 'player'(number expected, got nil)

old Re: Kill Menu buttons not working

Bowlinghead
User Off Offline

Quote
1. In which line does the error appear?

2. You have enough methods create a kill/ban/mute menu.
For example, you click on the Admin Menu -> Kill Menu. Then you only need to type the Player Id into the chat. You can also rewrite your actual idea.
Actually you do it like this:
1
2
3
4
5
6
7
8
9
function exist(param)
     if player(param,"exists") then
          return player(param,"name")
     else
          return "(None)"
     end
end

menu(id,"Kill Page 1,"..exist(1).."|1,"..exist(2).."|2,"..exist(3).."|3,"..exist(4).."|4,"..exist(5).."|5,"..exist(6).."|6,"..exist(7).."|7,"..exist(8).."|8,Next")
But if you have 10 players and player 5 left then you lost 1 menu button.
Several users already posted a code where the menu adjusts itself.

old Re: Kill Menu buttons not working

Louie
User Off Offline

Quote
@user Bowlinghead: About that error i fixed it myself,apprently the save/load doesn't want the "second" or "always" hook so i changed it to "minute".
Now about my Kick/Ban/Kill menu theres some glitches though like theres 12 players,so it will be 2 pages in a menu when i click the "Next" button then it kicks a player lol wtf?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview