Forum

> > CS2D > Scripts > Player List Menu
Forums overviewCS2D overview Scripts overviewLog in to reply

English Player List Menu

1 reply
To the start Previous 1 Next To the start

old Player List Menu

loldlold123
User Off Offline

Quote
need menu Player List Menu
When player join to server,and if he isnt spectator show his name in Player List Menu , when you select his name you'll se msg2(id,"You Selected id X")

old Re: Player List Menu

Apache uwu
User Off Offline

Quote
Okay I'm going to guess you want something like...


1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("serveraction","_serveraction")

function _serveraction(id,action)
	if action==1 then
		for _,id in player(0,"tableliving") do
			if text==nil then
				text=player(id,"name")
			else
				text=text..","..player(id,"name")
			end
		end
		menu(id,text)
	end
end

I know it won't fit if there are many players but it's a general idea. + I have no idea what you are talking about this was just a wild guess.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview