I need a script that meets the following criteria:
Admin can write a command: !players. It shows the list of players. Is visible to all.To hide the list, the Administrator must write this command again.
I can clarify if you do not understand.
Scripts
Tournament script request
Tournament script request
1

local AdminList = {} -- The U.S.G.N ID must be written here, multiple IDs must be separated with a comma
function ShowPlayersSay(id, message)
for _, USGNID in pairs( AdminList ) do
if ( player(id, 'usgn') == USGNID ) then
if ( string.sub(message, 1, 8) == '!players' ) then
local PlayerList = player(0, 'tableliving')
for _, id in pairs( PlayerLIst ) do
msg('The list of all players present in the server ' .. player(id, 'name'))
for _, all in pairs( player(0, 'tableliving') ) do
parse('speedmod ' .. all .. ' -100')
end
end
end
end
end
end
addhook('say', 'ShowPlayersSay')
GeoB99: It's conflicting with another script. What to do?!
kerker: That'd mean everything. Does the other script use the same local variable identifier local AdminList? Does the other script use the same command name? What scripts do you use?
Baloon's script.
Bowlinghead @
GeoB99's script i don't tested yet.I know only it's conflict with script, about what I did.
Baloon's code. I don't see any identifier or such that conflicts with my code. If things get weird just disable all the following script(s) with two dashes ( --dofile('SCRIPTPATH') ) through server.lua file.
GeoB99: Oh, I'm actually another script use too:
Bowlinghead's code as well but not at the same time!).
GeoB99: when I do this the screenshot. Same thing with a script by @
Bowlinghead
boncuk Oh. Okay. FYA
1
