Server Problem With FCVAR_SERVER_CAN_EXECUTE

i dont understand why i get this but when a player joins my server i they get this they cant move or tack weapons and they cant get anything up so the only thing they can do is talk

here are the errors they get in the console when they join

[lua]
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
[/lua]

[lua]
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +forward
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -forward
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +back
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +moveleft
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +moveright
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -moveleft
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -back
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -moveright
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +jump
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -jump
FCVAR_SERVER_CAN_EXECUTE prevented server running command: gameui_activate
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +forward
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +moveright
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -forward
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -moveright
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +attack2
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +jump
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -attack2
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -jump
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +attack
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -attack
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +showscores
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +attack
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -showscores
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -attack
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +attack
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -attack
FCVAR_SERVER_CAN_EXECUTE prevented server running command: gameui_activate
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +jump
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -jump
FCVAR_SERVER_CAN_EXECUTE prevented server running command: +attack
FCVAR_SERVER_CAN_EXECUTE prevented server running command: -attack
FCVAR_SERVER_CAN_EXECUTE prevented server running command: gameui_activate
FCVAR_SERVER_CAN_EXECUTE prevented server running command: gameui_activate
[/lua]

do you guys have any idear why ?

what gamemode?

RebelRP been codeing for a month now
any idears what do this error or what does FCVAR_SERVER_CAN_EXECUTE do ?

Had this bug too when I joined Zombie Survival once.

Any idear what does it ? its killing not knowing so this bug happends sometimes a spawn or 10 to 30 sec in to game and i dont understand why :C

and what does FCVAR_SERVER_CAN_EXECUTE do ?

it blocks the server from executing commands on the client except certain commands which are on a white list. 1 sec i’ll try to find the list.

EDIT:

nope can’t find it but you can just get round it by using ply:SendLua(“RunConsoleCommand(‘CommandHere’)”), unefficient but it works.

so can setting there motion blur like this

[lua]
self:ConCommand(“pp_motionblur_drawalpha 0.1”)
self:ConCommand(“pp_motionblur_addalpha 0.2”)
self:ConCommand(“pp_motionblur 1”)
[/lua]

but i dont see why it blocks all the clients commands even after being kicked from the server

I hate that goddamn thing, prevents me from doing almost anything with my clients on my server.

And no, I’m not an adminge.

so its because of the commands i run on the client that do it ?

if FCVAR_SERVER_CAN_EXECUTE blocks most of the commands done on client then its shit :confused:
i can see why it was added but it does but a limite to you :C

You should set the values in a function meant for it (take a look at the wiki), and not with console commands.

i dont understand

this is the full thing

[lua]
local Meta = FindMetaTable( “Player” )

function Meta:EffectCheck()
if self.effectUpdate == nil then
self.effectUpdate = 0
end

if (self:GetNWInt( "stamina" )  > 90) then
	self:ConCommand("pp_motionblur 0") 	
elseif (self:GetNWInt( "stamina" )  >= 80 && self:GetNWInt( "stamina" )  <= 90) then
	self:ConCommand("pp_motionblur_drawalpha 0.1")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")		
elseif (self:GetNWInt( "stamina" )  >= 70 && self:GetNWInt( "stamina" )  <= 80) then
	self:ConCommand("pp_motionblur_drawalpha 0.2")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")
elseif (self:GetNWInt( "stamina" )  >= 60 && self:GetNWInt( "stamina" )  <= 70) then
	self:ConCommand("pp_motionblur_drawalpha 0.3")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")
elseif (self:GetNWInt( "stamina" )  >= 50 && self:GetNWInt( "stamina" )  <= 60) then
	self:ConCommand("pp_motionblur_drawalpha 0.4")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")
elseif (self:GetNWInt( "stamina" )  >= 40 && self:GetNWInt( "stamina" )  <= 50) then
	self:ConCommand("pp_motionblur_drawalpha 0.5")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")
elseif (self:GetNWInt( "stamina" )  >= 30 && self:GetNWInt( "stamina" )  <= 40) then
	self:ConCommand("pp_motionblur_drawalpha 0.6")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")
elseif (self:GetNWInt( "stamina" )  >= 20 && self:GetNWInt( "stamina" )  <= 30) then
	self:ConCommand("pp_motionblur_drawalpha 0.7")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")
elseif (self:GetNWInt( "stamina" )  >= 10 && self:GetNWInt( "stamina" )  <= 20) then
	self:ConCommand("pp_motionblur_drawalpha 0.8")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")
elseif (self:GetNWInt( "stamina" )  >=  0 && self:GetNWInt( "stamina" )  <= 10) then
	self:ConCommand("pp_motionblur_drawalpha 0.9")
	self:ConCommand("pp_motionblur_addalpha 0.2")
	self:ConCommand("pp_motionblur 1")
end

end
[/lua]

do you think its beause of this ?

[editline]05:18PM[/editline]

Ok i found how to fix it you can use ConCommand() in meta

This is why they invented formulas.

oh good god man…I can’t code for shit but even I was taught that you always find a formula for these situations

DO NOT EVER DO THIS!
EVER

Omg, learn how to use the Lua commands: http://wiki.garrysmod.com/?title=G.DrawMotionBlur

Use usermessages instead of SendLua

thanks did not know about that :smiley: