Where should it be put at ?

Ok so this is my code:



concommand.Add( "normalspeed", normalspeed )
function normalspeed ( ply )
	ply:SetWalkSpeed( 300 )
end
concommand.Add( "speedr", speed )
function speed ( ply )
	ply:SetWalkSpeed( 1000 )
end

concommand.Add( "speed", function( ply )
   ply:concommand("speedr")
   if timer.Exists("SpeedCommandTimer") then
      timer.Destroy("SpeedCommandTimer")
   end
   timer.Create("SpeedCommandTimer", 10, 1, function() if IsValid( ply ) then ply:concommand("normalspeed") end end )
end )


and if I run this on init, It will say unknown command, But if I run on shared it says:



[ERROR] gamemodes/war/gamemode/shared.lua:20: attempt to call method 'concommand' (a nil value)
  1. unknown - gamemodes/war/gamemode/shared.lua:20
   2. unknown - lua/includes/modules/concommand.lua:69


It should be ply:ConCommand( “normalspeed” )

Case Sensitive, ConCommand

ok thanks