• ConCommand blocked! (gm_spawnsent sent_ball)
    35 replies, posted
See the title, I'm getting this incredibly annoying error! I'm trying to make the server make a client spawn a bouncy ball, but Gmod is blocking me from doing this :bang: For some reason, I can let clients spawn strider busters, but not bouncy balls... Any ideas on how to fix this?
You can't fix it as far as i know. Garry has blocked that concommand being run through the server for the client so you need another way of spawning it.
[QUOTE=Ronon Dex;17882486]You can't fix it as far as i know. Garry has blocked that concommand being run through the server for the client so you need another way of spawning it.[/QUOTE] But why can I use [i]gm_spawnsent weapon_striderbuster[/i] but not [i]gm_spawnsent sent_ball[/i]? Makes no sense to me.
Use usermessaged and make it run on the client.
Why not just make your own command that spawns the ball sent?
Run this in server: CCSpawnSENT(ply,nil,'sent_ball') Why overcomplicate things :)
I can't believe no one has said this... S[b]ent_[/b]ball. Ent_ is blocked in gmod [editline]03:13PM[/editline] I win :eng101:
[QUOTE=Gbps;17883477]I can't believe no one has said this... S[b]ent_[/b]ball. Ent_ is blocked in gmod[/QUOTE] ..... Are you dumb? [editline]03:13PM[/editline] no you're incredibly fucking stupid
No, it's right. I'm 100^100% sure. (That's 100 with 100 zeros) [editline]03:15PM[/editline] [QUOTE=raccoon12;17883502]..... Are you dumb? [editline]03:13PM[/editline] no you're incredibly fucking stupid[/QUOTE] Have a box
OK, let me explain this... you mean ent_fire, ent_freeze, which are cheat protected, meaning you need sv_cheats 1 on. sent_ball wouldn't be affected.. that would cripple all the sents made... [editline]03:15PM[/editline] troll
Oh rly? Well test it yourself then. Oh, and run a concommand with ent_ through Lua while you're at it.
You're an idiot or a troll
Keyword through Lua
[QUOTE=raccoon12;17883502]..... Are you dumb? [editline]03:13PM[/editline] no you're incredibly fucking stupid[/QUOTE] No, he's right. [url]http://wiki.garrysmod.com/?title=G.RunConsoleCommand[/url] [quote]# Any command with "ent_" is blocked. [/quote]
[QUOTE=raccoon12;17883666]You're an idiot or a troll[/QUOTE] Have you even tried it yourself before flaming him to death without any proof or argument?
[QUOTE=Gbps;17883477]I can't believe no one has said this... S[b]ent_[/b]ball. Ent_ is blocked in gmod [editline]03:13PM[/editline] I win :eng101:[/QUOTE] Why the hell does he have 6 dumb ratings when he's right?
[QUOTE=_Kilburn;17883712]Have you even tried it yourself before flaming him to death without any proof or argument?[/QUOTE] no [editline]03:38PM[/editline] wellp it was fun while it lasted
[QUOTE=Gbps;17883477]I can't believe no one has said this... S[b]ent_[/b]ball. Ent_ is blocked in gmod [editline]03:13PM[/editline] I win :eng101:[/QUOTE] Well, that sucks.
gm_spawnsent sent_ball in console works just fine!
[QUOTE=commander204;17885033]gm_spawnsent sent_ball in console works just fine![/QUOTE] In console it works just fine, in the menu it works just fine, but when you run it like from Lua, then it will block it, in this case. [editline]04:36PM[/editline] Also, I hate to say I told you so, but I told you so. [editline]04:37PM[/editline] [QUOTE=Diaklu;17883865]Why the hell does he have 6 dumb ratings when he's right?[/QUOTE] Expect any more from Facepunch?
lick my butt
[QUOTE=raccoon12;17883502]incredibly fucking stupid[/QUOTE] .
[QUOTE=Jo The Shmo;17886129]i am gay[/QUOTE] thanks man
Enough with the trolling, run it through the client maybe? [lua]ply:SendLua("LocalPlayer():ConCommand('gm_spawnsent sent_ball')")[/lua] This would be the simplest way, I think. :smile:
[QUOTE=ZpankR;17887049]Enough with the trolling, run it through the client maybe? [lua]ply:SendLua("LocalPlayer():ConCommand('gm_spawnsent sent_ball')")[/lua] This would be the simplest way, I think. :smile:[/QUOTE] I'm not trolling, I'm just dumb
I fixed it by instead of sending it back to the client and then again back to the server, I'm now directly calling the spawn functions :v:
[QUOTE=raccoon12;17887539]I'm not trolling, I'm just dumb[/QUOTE] Oh ok.
[QUOTE=ZpankR;17887941]Oh ok.[/QUOTE] No problem
Are you using game.ConsoleCommand, ply:ConCommand or RunConsoleCommand? I believe the former two are blocked, yet the later is only blocked if it's in the command argument.
[QUOTE=ZpankR;17887049]Enough with the trolling, run it through the client maybe? [lua]ply:SendLua("LocalPlayer():ConCommand('gm_spawnsent sent_ball')")[/lua] This would be the simplest way, I think. :smile:[/QUOTE] Why do that at all when you can do CCSpawnSENT(ply,nil,'sent_ball')
Sorry, you need to Log In to post a reply to this thread.