Stop server crashing

I am busy with stop server crasing with WS command.

Quote
//Antiserver crashing TEST
sv_cvar ws in 0 1


Not tested yet.
Comments
22
Latest lua script disabled it already, jo ?
Nope, if you use globa cfg you stil can use it.
Parent
Quotefunction et_ClientCommand(cno,cmd)
cmd = string.lower(cmd)
if cmd == "ws" then
local n = tonumber(et.trap_Argv(1))
if not n then
et.G_LogPrint(string.format("wsfix: client %d bad ws not a number [%s]\n",cno,tostring(et.trap_Argv(1))))
return 1
end

if n < 0 or n > 21 then
et.G_LogPrint(string.format("wsfix: client %d bad ws %d\n",cno,n))
return 1


From the LUA
Parent
That should fix it. Make sure the lua is loaded,

/rcon lua_status
Parent
How to load lua script?
Parent
/ws 9999999x : )
Back to top