• Changing gamemode via changegamemode in console
    9 replies, posted
Title says it all. Ive tryed what ive thought like: changegamemode "Sandbox" changegamemode sandbox changegamemode Sandbox changegamemode sandbox gm_construct changegamemode "Sandbox" gm_construct What am i doing wrong? How would i change the gamemode via the console command? Thank you.
sv_defaultgamemode sandbox sv_gamemode sandbox changelevel gm_construct
[QUOTE=iRzilla;25227537]changegamemode map gamemode[/QUOTE] I typed this into console. Nothing happend. I then went to ASSmod -> Rcon -> Custom and typed it in. Then it worked. Now im wondering, how would i change it via a lua code if i can just run the console command changegamemode "map" "gamemode"? Is there a way to make it possible to change it via the console. Or how would i make it run via the assmod rcon? But aint the ASSmod rcon the same thing as the console? Aint it just running a console command. Thats what i dont get.
Ass Mod Rcon = simple console command on the server On your client, you can't use a simple console command unless you are hosting a listen server. Set an rcon password and use "rcon yourcommand" to [B][U]r[/U][/B]emote[B][U]con[/U][/B]trol the server from your client. In Lua, use a console command. That's what AssMod does; no need to put "rcon".
[QUOTE=_nonSENSE;25245354]Ass Mod Rcon = simple console command on the server On your client, you can't use a simple console command unless you are hosting a listen server. Set an rcon password and use "rcon yourcommand" to [B][U]r[/U][/B]emote[B][U]con[/U][/B]trol the server from your client. In Lua, use a console command. That's what AssMod does; no need to put "rcon".[/QUOTE] If i understood this right (Probably didten) then i have to: Type in my rcon password. Then type in changegamemode "map" "gamemode" Doesent seem right. Let me ask another question then: How would i change this by RunConsoleCommand("") Since running: changegamemode map gamemode doesent work?
[QUOTE=iRzilla;25247614]You never said you were using it in RunConsoleCommand :| [lua]RunConsoleCommand("changegamemode", "gm_flatgrass", "sandbox")[/lua] If your changing it normally: You do not need quotes unless the map has a space. (which it should never have!)[/QUOTE] I tryed but it didten work. When i typed in the command nothing happend. Well i havent tryed doing the RunConsoleCommand. I will try that later. But when i did it normally from the console nothing happend.
[QUOTE=iRzilla;25248436]Have you read any of what anyone else has said? You need to rcon it if you're doing it like that![/QUOTE] Ohh right. Sorry for not reading. It works now. Thank you very much!
Sorry, you need to Log In to post a reply to this thread.