Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: darkdeath on February 13, 2006, 12:30:12 PM
-
plz anyone who knows lua good tell me:
here below is the code:
if _GetConVar_Bool( "6" ) then
_MaxPlayers( userid, "Set 6 players", "6", )
else
_MaxPlayers( userid, "Set 10 players", "6", )
end
How can i make this code work thats my question?
btw: its for the "ulx_menus.lua" i am adding some more options.
-
_MaxPlayers doesn't accept any parameters, and you cannot change the maxplayers while running a server
-
oh thats a pitty
are there any codes who worK ?..
like the weapon codes ?
-
can someone TELL ME THAT ?...
-
There is no way you can change maxplayers without restarting the server
-
no i don't mean that but can i use other codes beginning with "_" (under squore)
thats what i ment to say..
-
http://gmwiki.garry.tv/index.php/Category:Lua_Bindings
-
yea i mean that could i use one of those for examle in your script and how ?...
just 1 example the rest i try to figure out my self ..
-
You could use _spawnmenu.RemoveAll( userid_you_want ) to remove that userid's prop menu
-
THATS PRETTY COOL :)
edit:but how to set all the menu's again ?
elseif choice == ID_GETALLMENU then
_spawnmenu.All( target, "steamid" )
-
does any one know that ?